These are miscellaneous documents I've created related to teaching and understanding R.
-
install_packages.Rmd
You can distribute this as a markdown file. You specify package names in thepkgs
variable. 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-ways
This 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.Rnw
is the pdf produced from the Rnw fileRnw_vs_Rmd-Rmd.Rmd
is the pdf produced from the Rmd file
-
dataframe_ops
This simply illustrates the many ways to references components of a dataframe.