1.4.export.data: exporting data data

Description Usage Arguments Details Value Warning Note Author(s) References See Also Examples

Description

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

Usage

1
2
3
4
5
6
7
 
exportData(data, file="tempfile.txt", ..., 
          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. For ExportData.

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

exportData exports the data component of a pems object.

Value

exportData generates a tab-delimited file using the supplied data. If a file name is not set using file, it is called tempfile.txt.

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

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

pems documentation built on May 2, 2019, 5:20 p.m.

Related to 1.4.export.data in pems...