RDataCreate: Create an RData file containing the result of a function call

Description Usage Arguments Value See Also Examples

Description

RDataCreate stores the result of a function call in an RData file using the specified directory and file/object name

Usage

1

Arguments

dir

character value; directory in which to store the output RData file

x

character value; name to use for the file/object

fun

name of the function to call (non-quoted)

args

named list of arguments to supply to the function; the names attribute of args gives the argument names

replace

logical value; replace the output RData file if it already exists?

Value

The result of the evaluated function call is stored in an RData file using the path/name: paste0(dir, "/", x, ".RData")

See Also

RDataUse, do.call, assign, save

Examples

1
2
3
RDataCreate(".", "test", names, list(x = mtcars), TRUE)
load("test.RData")
print(test)

dnegrey/spork documentation built on May 15, 2019, 9:40 a.m.