| write.ctd {oce} | R Documentation |
Writes a comma-separated file containing the data frame stored in
the data slot of the first argument. 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.
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. |
Dan Kelley
The documentation for ctd-class explains the structure
of CTD objects, and also outlines the other functions dealing with them.
Other things related to ctd data: [[,ctd-method,
[[<-,ctd-method, as.ctd,
cnvName2oceName, ctd-class,
ctdDecimate, ctdFindProfiles,
ctdRaw, ctdTrim,
ctd, handleFlags,ctd-method,
plot,ctd-method, plotProfile,
plotScan, plotTS,
read.ctd.itp, read.ctd.odf,
read.ctd.sbe,
read.ctd.woce.other,
read.ctd.woce, read.ctd,
subset,ctd-method,
summary,ctd-method,
woceNames2oceNames
## Not run:
library(oce)
data(ctd)
write.ctd(ctd, "ctd.csv")
d <- read.csv("ctd.csv")
plot(as.ctd(d$salinity, d$temperature, d$pressure))
## End(Not run)