source.data: Load a data file into R

Description Usage Arguments Details Value Author(s)

View source: R/import.R

Description

Searches the ~/R/dwd_data/ directory or a specified folder for .RData files recursively and displays its findings so the user can choose one of them.

Usage

1
source.data(download.folder = NULL, envir = NULL)

Arguments

download.folder

Specifies the folder in which the function will look for .RData files recursively. Per default the R/dwd_data/ directory in the home folder will be used. You can overwrite this behavior by setting options( dwd2r.download.path = "PATH" ) in the .Rprofile configuration file in your home.

envir

Environment the data will be attached to. If not specified, the data will be loaded to the environment the function is called from. Default = NULL.

Details

In order to use the data with the climex package, it should be of class xts or of lists of class xts objects.

If you do not have any data yet, use the dwd.download function to get some.

Value

invisible() but attaches the content of the chosen .RData file to the specified R environment.

Author(s)

Philipp Mueller


theGreatWhiteShark/dwd2r documentation built on May 22, 2019, 2:26 p.m.