LoadRData2Variable: LoadRData2Variable

View source: R/common.R

LoadRData2VariableR Documentation

LoadRData2Variable

Description

This function loads R-data file into a variable instead of into the workspace. Works well when the R-data file contains only ONE variable. Not tested for when the R-data file contains more than one variable.

Usage

LoadRData2Variable(path, url = "")

Arguments

path

local path to rda file (default)

url

remote URL to rda file (note: requires explicitly specifying argument)

Value

an R object, you will probably want to assign it to a variable

Examples

## Not run: 
abscoeff <- LoadRData2Variable("/path/file.rda")
abscoeef <- LoadRData2Variable(url="http://public.solarchemist/data/file.rda")

## End(Not run)

chepec/R-common documentation built on July 27, 2023, 11:33 a.m.