package2csv | R Documentation |
This package allows users to easily download all the CSVs in a given package to CSV.
# library(devtools) # devtools::install_github("patrickm663/package2csv") # libary(package2csv) ## Load the package(s) that contain datasets you wish to extract library(MASS) ## Argument accepts package name as string datasets_to_csv("<valid dataset>", workdir = "optional/valid/directory/")
x |
Package name as string. Multiple packages can be passed as a vector of strings. |
workdir |
OPTIONAL: valid working directory as a string. |
No value returned.
Patrick Moehrke
write.csv
## Download all datasets from MASS package into the current working directory library(MASS) datasets_to_csv("MASS")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.