getPackages()
provides a method for checking, installing, and loading a list of package names. Specifically this function will:
install.packages()
.library()
Usage: getPackages("ggplot2", "ggvis", "ggmaps")
install.packagesArchive()
provides a wrapper for installing packages found on the CRAN archive.
Usage: install.packagesArchive(package = "mixlow", version = "2.0.1")
read_workbook()
is a wrapper for readxl::read_excel()
, in which all sheets of a workbook are read into R, with each sheet taking on the name provided in excel. Sheets are either individually added to the global environment as data.frame
s via add_to_Envir=TRUE
, and/or appended together as a list of data.frame
s and returned via output_ls=TRUE
.
Usage: read_workbook(C:/User/Me/MyWorkbook.xls)
getVarLabelTable()
pulls in variable label data for data imported using either the foreign
or Hmisc
packages. A data.frame containing the variable names in the first column and variable labels in the second column is returned.
Usage: getVarLabelTable(importedDataObject)
sourceDir()
iterates through all .R
files found in a given directory and sources them via source()
.
Usage: sourceDir("C:/User/Me/AllMyRFiles/")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.