Description Usage Arguments Value See Also Examples
Useful to prepare data for tableNet
1 | dir2dfList(dfdir, ext = ".txt", exclude = NULL, ...)
|
dfdir |
character string of the directory where you want to load flat files |
ext |
file extention on the type of files to load. Usually |
exclude |
character string of table names to be excluded from app. Needs to be specified to |
... |
parameters to pass to |
list of data.frames
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
## download some baseball data. NOTE This will download 30MB of data (25 csv files) into a temporary directory
temp <- tempfile()
localDataDir <- paste0(tempdir(), '\\lahman2012-csv-onYourComp.zip')
download.file('http://seanlahman.com/files/database/lahman2012-csv.zip', localDataDir)
unzip(localDataDir, exdir=paste0(tempdir(), '\\lahman2012-csv-onYourComp')) ## may not be necessary
## create a list of data.frames from .CSVs
dfL <- dir2dfList(paste0(tempdir(), '\\lahman2012-csv-onYourComp'), ext='.csv', exclude=NULL, sep=',', stringsAsFactors=F)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.