These are miscellaneous documents I've created related to teaching and understanding R.
-
install_packages.RmdYou can distribute this as a markdown file. You specify package names in thepkgsvariable. You have others compile the file in RStudio (for example), and it will install the packages you have specified if they do not exist on the user's machine. This does not allow version checking or anything sophisticated. Warnings for uninstalled packages should be printed at the top of the document. -
R-four-waysThis compares and benchmarks different methods of accomplishing the same calculations. (The file contains examples of accessing a password-protected PostgreSQL server. The username and password are not public.) -
Rnw_vs_Rmd: These files implement the same equation, table, figure, and bibliographic references in Rnw (LaTeX plus R code) and Rmd (markdown plus R code) formats. There are formatting differences, but on the whole the two are quite similar.`Rnw_vs_Rmd-Rnw.Rnwis the pdf produced from the Rnw fileRnw_vs_Rmd-Rmd.Rmdis the pdf produced from the Rmd file
-
dataframe_opsThis simply illustrates the many ways to references components of a dataframe.