Learn R Programming

repfun (version 0.1.2)

ru_libname: Automate retrieval of data sets/frames in specified folder.

Description

Provide a folder containing data sets/frames and have a list of function calls returned that can be used to quickly access individual data sets/frames.

Usage

ru_libname(datapath)

Value

List of function calls for use in quickly accessing individual data sets/frames.

Arguments

datapath

Location of reporting data sets.

Examples

Run this code
library(repfun)
datdir <- file.path(gsub("\\","/",tempdir(),fixed=TRUE),"datdir")
dir.create(datdir,showWarnings=FALSE)
repfun::copydata(datdir)
adamdata <- repfun::ru_libname(datdir)
adamdata$adae.rda() %>% dplyr::filter(TRTEMFL=='Y') -> teae
print(head(teae[,c(1:10)]),10)

Run the code above in your browser using DataLab