exporting PEMS data

Share:

Description

Some functions for exporting data from R and pems.utils.

Usage

1
2
3
4
5
6
7
 
exportPEMSData(data, file="tempfile", ..., 
          sep="\t", file.writer = write.table,
          row.names = FALSE)

#exportPEMS2Excel 
#currently disabled

Arguments

data

(A required object) The object to export or export data from.

file

(Character) The name of the file to create when exporting data. This can be 'clipboard', to export to the clipboard assuming the clipboard buffers are not exceeded.

...

(Optional) Other arguments, handling varies. For export... functions, these are currently ignored. Note: This and may be subject to change in future.

sep, file.writer, row.names

(Various arguments) file.writer is the R function used to create the export file. sep and row.names are arguments passed to file.writer.

Details

exportPEMSData exports the data component of a pems object.

Value

By default, exportPEMSData generates a tab-delimited file using the supplied data. If a file name is not set using the file argument, it is named tempfile.

Warning

Currently, the export... functions overwrite without warnings.

Note

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.

Author(s)

Karl Ropkins

References

References in preparation.

See Also

See import2PEMS, etc. for importing data into pems.utils.

Examples

1
2
3
4
5
6
7
8
###########
##example 1 
###########

#making a tab-delimited copy of pems.1

##exportPEMSData(pems.1, "pems.example.txt")
##dir()