Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
r_programming_gl [2014/11/21 20:47] glaroc [Data Table] |
r_programming_gl [2014/11/21 21:31] (current) glaroc old revision restored (2014/11/21 15:54) |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Knitr ====== | ||
| + | Knitr is a package that can be used to generate dynamic reports or web pages from R code. The code is evaluated at the moment the report is generated. | ||
| + | |||
| + | Code can be easily written in RStudio use the Markdown language. View this page in Markdown language, and view the resulting web page. | ||
| + | |||
| + | |||
| ====== Data Table ====== | ====== Data Table ====== | ||
| Data table is a very useful package in R which allows to facilitate and to improve the efficiency of certain operations in R. Data tables are just like data frames. You can even create them from data frames. | Data table is a very useful package in R which allows to facilitate and to improve the efficiency of certain operations in R. Data tables are just like data frames. You can even create them from data frames. | ||
| Line 92: | Line 98: | ||
| <file rsplus> | <file rsplus> | ||
| library(RgoogleMaps) | library(RgoogleMaps) | ||
| - | myhome=getGeoCode('McGill Biology Department'); | + | myhome=getGeoCode('Olympic stadium, Montreal'); |
| mymap<-GetMap(center=myhome, zoom=14) | mymap<-GetMap(center=myhome, zoom=14) | ||
| PlotOnStaticMap(mymap,lat=myhome['lat'],lon=myhome['lon'],cex=5,pch=10,lwd=3,col=c('red')); | PlotOnStaticMap(mymap,lat=myhome['lat'],lon=myhome['lon'],cex=5,pch=10,lwd=3,col=c('red')); | ||
| Line 132: | Line 138: | ||
| dc[,c('toponymName')] | dc[,c('toponymName')] | ||
| </file> | </file> | ||
| + | |||
| + | |||
