A convenience function that, given a path to a .RData file, will load in a specified R object contained within the file.

load_R_object(path_to_rdata, which_object)

Arguments

path_to_rdata

A character string, a path to a .RData file to be passed on to the load

which_object

The variable name for the R object to return from the set of all variables loaded in from the .RData file. Uses non-standard evaluation.

Author

Kevin Potter