rda.conversion.saveAsRDA: Convert Loaded Data to RDA File.

Description Usage Arguments Details See Also Examples

View source: R/rda_conversion.R

Description

This function converts a loaded dataset dat into an RDA file.

Usage

1

Arguments

dat

data.frame containing the data loaded from a raw data/CSV- file.

name

Name assigned to dat by the filename of it's raw file.

Details

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.

See Also

rda.conversion.loadDataFile

Examples

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')

MarcoNiemann/kaggle_house documentation built on May 7, 2019, 2:50 p.m.