Learn R Programming

MetStaT (version 1.0)

MetStaT.ExportDataToFile: Exports the results of supplied R expressions as text files in a single zip package.

Description

This function will execute the expressions supplied, and will then attempt to write the results per expression to a text file using the method MetStaT.WriteDataObjectToFile. Finally, all text files are bundled as a zip file.

Usage

MetStaT.ExportDataToFile(zipfile.name, filename.no.ext, data.expressions, file.type)

Arguments

zipfile.name
the name of the final zip file.
filename.no.ext
the body of the filename that contains the data results for each of the supplied expressions. The final name will have a number added corresponding to the expression's index in the supplied expressions vector.
data.expressions
a vector of R expressions which need to be executed and whose results will be written to a text file.
file.type
the extension name for each of the text files.

Value

A single zip file which contains separate text files that each contain the results for one of the supplied R expressions.