write.ctd {oce} | R Documentation |
Write a CTD data object as a .csv
file.
write.ctd(object, file=stop("'file' must be specified"))
object |
A |
file |
Either a character string (the file name) or a connection. This is a mandatory argument. |
Writes a comma-separated file containing the data frame stored in
object@data
. The file is suitable for reading with a spreadsheet,
or with read.csv
. Note that the output file will retain none
of the meta-data stored in object
.
Dan Kelley
The documentation for ctd-class
explains the structure
of CTD objects, and also outlines the other functions dealing with them.
library(oce) data(ctd) write.ctd(ctd, "ctd.csv") d <- read.csv("ctd.csv") plot(as.ctd(d$salinity, d$temperature, d$pressure))