Skip to content

Common Task Information

Toby Dylan Hocking edited this page Dec 3, 2019 · 10 revisions

Book describing R package development: http://r-pkgs.had.co.nz/tests.html

Installing R and RStudio

You can get and install R freely from CRAN. RStudio IDE can be downloaded and installed from here: https://rstudio.com/products/rstudio/download/#download

Installing R packages

To install an R package that is available on CRAN, use this command on the R console: install.packages("package_name"). You can find more information here: http://www.sthda.com/english/wiki/installing-and-using-r-packages

Reading and Writing CSV data

You can find help on this at the following links:

https://www.tutorialspoint.com/r/r_csv_files.htm

https://www.cyclismo.org/tutorial/R/input.html#reading-a-csv-file

Data frames and Subsetting Data

Tutorials on data frames and data manipulation:

http://www.programmingr.com/examples/r-dataframe/

Find some examples on how to subset data at the following links:

https://www.statmethods.net/management/subset.html

https://www.r-bloggers.com/5-ways-to-subset-a-data-frame-in-r/

Clone this wiki locally