.csv
file.write.ctd(object, file=stop("'file' must be specified"))
ctd
object, e.g. as read by read.ctd
.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
.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))
Run the code above in your browser using DataLab