Learn R Programming

broman (version 0.48-2)

attachwork: Attach a workspace

Description

Attach a workspace for a directory name of a particular form.

Usage

attachwork(i = "", dir = "Work", verbose = TRUE)

Arguments

i
An integer or character string.
dir
Directory name.
verbose
If true, print a message if the file can't be loaded.

Value

  • TRUE/FALSE according to whether the file exists (and so the function worked).

Details

This function attaches the workspace paste(dir,i,"/.RData",sep="").

See Also

loadwork, attachfile, loadfile

Examples

Run this code
for(i in 1:5) attachwork(i)

Run the code above in your browser using DataLab