Learn R Programming

MAR1 (version 1.0)

export.MAR: Export all elements of a MAR object to a new directory

Description

Creates a new directory and writes all elements of an object of class MAR to that directory as csv files.

Usage

export.MAR(model.out,export=TRUE)

Arguments

model.out
Object of class MAR to be saved as csv files
export
Optionally allows the name of the new directory to be set equal to a character string. Otherwise, the name of the new directory will be "MAR.results Sys.time"

Details

All elements of the given MAR class object are converted to csv format and written to a new directory created within the current working directory. The name of the new directory can be chosen by setting the export argument equal to a character string. If the name of the new directory matches one already present in the working directory, the name will be amended with Sys.time() to avoid overwriting the previous folder

See Also

run.mar