data: RData

RDataR Documentation

RData

Description

Saves and loads object containing informations extracted by extractoR.

Usage

SaveRData(rdata, datadir, subdir=".", format="rds",
          FUNC=saveRDS, FILTER=base::identity, ...)
LoadRData(datadir, subdir=".", format="rds",
          FUNC=readRDS, FILTER=base::identity, ...)
SaveCSV(rdata, datadir, subdir=".", FILTER=base::identity)
LoadCSV(datadir, subdir=".", FILTER=base::identity)
LoadFastCSV(datadir, subdir=".", FILTER=base::identity)
SaveYAML(rdata, datadir, subdir=".", FILTER=base::identity)
LoadYAML(datadir, subdir=".", FILTER=base::identity)
SaveJSON(rdata, datadir, subdir=".", FILTER=base::identity)
LoadJSON(datadir, subdir=".", FILTER=base::identity, ...)


Arguments

rdata

A list containing objects to be saved

datadir

Directory where to save/load objects

subdir

Subdirectory where to save/load objects

format

Format used to save/load data.table objects

FUNC

Function used to read/write from file

FILTER

Function used to filter the files to read/write

...

Additional arguments to pass to FUNC

Value

SaveRData saves elements each element of a list. By default saves to RDS file.

LoadRData reads all files and returns a list where all elements are the objects contained into the data files. By default loads RDS files.

SaveCSV, SaveYAML, SaveJSON, LoadCSV, LoadYAML and LoadJSON call SaveRData and LoadRData with parameters to save/load data to CSV, YAML, JSON and Feather formats.

LoadFastCSV loads data from CSV files using data.table's fread function.

Author(s)

Maëlick Claes <himself@maelick.net>


ecos-umons/extractoR documentation built on June 26, 2022, 2:21 p.m.