Professional Documents
Culture Documents
Installing R
The current version can be downloaded from
http://cran.r-project.org
Download the base file from this site
Getting Help
From R environment
help.start()
# general help
help(foo)
# help about functionfoo
?foo
# same thing
apropos("foo") # list all functions containing string foo
example(foo) # show an example of functionfoo
In internet
http://search.r-project.org/
http://rseek.org/ (custom google for R)
R mailing list (https://www.r-project.org/mail.html)
Stack overflow (R is very popular Tag)
And other hundreds of tutorial sites, free books and blogs
https://thebook.io/006723/ch01/01/ (book in korean)
Input Data
specific packages are available for getting data and syntax depends on
packages
Eg:
Foreign package : read and write data from some version of EPI Info, SAS, SPSS,
STATA, Minitab, Weka and dBase
For excel: Xlconnect, [loadWorkbook () ; readWorksheet()]
SPSS: read.spss ()
STATA : package readstata13 ; read.dta13(path to file.dta)
Visit: https://cran.r-project.org/web/packages/readstata13/README.html
All the packages have documentation hosted in R CRAN server
scale_<aesthetic>_<type>(nam
e = <"scale label">,
breaks = <where to
put tick marks>,
labels = <labels for
tick marks>,
... <other options
for the scale>) +
function>,
color = <"fixed color
specification">,
<other arguments, possibly passed
to the _stat_ function) +
theme(plot.background =
element_rect(fill = "gray"),
... <other theme
elements>)
QGIS