Description Usage Arguments Details Value Warning Note Author(s) References See Also Examples
Some functions for exporting data from R and pems.utils.
1 2 3 4 5 6 7 8 9 10 11 | exportPEMS(pems, file = "tempfile", file.writer = write.table,
sep = "\t", ...)
exportPEMS2TAB(pems, file = "tempfile", file.writer = write.table,
sep = "\t", ...)
exportPEMS2TAB(pems, file = "tempfile", file.writer = write.table,
sep = "\t", ...)
#exportPEMS2Excel
#currently disabled
|
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
|
file.writer, sep |
(Various arguments) |
... |
(Optional) Other arguments, handling varies. For |
By default, exportPEMS2TAB
and exportPEMS2CSV
export the data component of a supplied
pems
object, to tab-delimited .txt
and comma-delimited .csv
files,
respectively. file
sets the file name (default tempfile
).
These are typically used in form:
exportPEMS2...(pems, file, ...)
By default, they make the following associated modifications:
If file extensions are not included in file
, they add .txt
and .csv
extensions to tab-delimited and comma-delimited files, respectively. The argument
tidy.file=FALSE
can be used to disable this modification.
Time stamps, if identified, are exported in "DD/MM/YYYY HH:MM:SS.x" format. Handling can be
altered using time.stamp
, time.format
and tz
arguments like
import2PEMS
or disabled using tidy.time.stamp=FALSE
.
Data-series units can also be added to exported file column names in form name(units)
by adding the argument units="add.to.names"
.
exportPEMS2...()
functions generate export file from pems data.
Currently, exportPEMS...
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
.
1 2 3 4 5 6 7 8 9 10 11 | ###########
##example 1
###########
#making a comma-delimited copy of pems.1
## Not run:
exportPEMS2CSV(pems.1, "pems.example")
dir()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.