1.4.export.data {pems.utils} | R Documentation |
Some functions for exporting data from R and pems.utils.
exportPEMSData(data, file="tempfile", ..., sep="\t", file.writer = write.table, row.names = FALSE) exportPEMS2CSV(pems, file="tempfile", ...) #exportPEMS2Excel #currently disabled
data, pems |
(A required object) The object to export from R, typically a |
file |
(Character) The name of the file to create when exporting data. This can be
|
... |
(Optional) Other arguments, handling varies. For |
sep, file.writer, row.names |
(Various arguments) |
Both exportPEMSData
and exportPEMS2CSV
export the data component of a supplied
pems
object. exportPEMSData
saves it as a tab-delimited .txt
file.
exportPEMS2CSV
saves it as a comma-delimited .csv
file. See below.
By default, exportPEMSData
and exportPEMS2CSV
, respectively, generate tab-delimited and
comma-delimited file copies of the data element of the supplied data.
If a file name is not set using the file
argument, the is named tempfile
.
exportPEMS2CSV
modified the data as part of export as follows: It adds the time-series units to
the time.series name in form [name]_[units]
.
Currently, the export...
functions overwrite without warnings.
exportPEMS2Excel
is curently disabled.
These are very crude functions in the most part because they are rarely used. Suggestions for helpful improvements would be very welcome.
Karl Ropkins
References in preparation.
See import2PEMS
, etc. for importing data into pems.utils
.
########### ##example 1 ########### #making a tab-delimited copy of pems.1 ## Not run: exportPEMSData(pems.1, "pems.example.txt") dir() ## End(Not run)