Description Usage Arguments Details See Also Examples
View source: R/rda_conversion.R
This function converts a loaded dataset dat
into an RDA file.
1 | rda.conversion.saveAsRDA(dat, name)
|
dat |
|
name |
Name assigned to |
This function takes a dataset dat
(typically previously loaded via
rda.conversion.loadDataFile
) and the name
it comes with.
Based on this it first checks the data
directory for an RDA file with
the same name (indicating that the data in question has already been
converted). Whenever conversion is still required, the input data dat
will be bound to the .GlobalEnv
under the label of name
. This
allows to store the variable content to an RDA file via
base::save
. Finally .GlobalEnv
will be cleaned from
dat
again.
1 2 3 | # Assuming the existance of directory 'inst/extdata' and file 'data.csv':
imp <- KaggleHouse:::rda.conversion.loadDataFile('inst/extdata', 'data.csv')
KaggleHouse:::rda.saveAsRDA(imp, 'data.csv')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.