Last chance! 50% off unlimited learning
Sale ends in
ctd
file, updating the header as appropriate.ctdAddColumn(x, column, name, label, unit, debug=getOption("oceDebug"))
ctd
object, e.g. as read by read.ctd
.data
slot of x
.name
will be used.)class
"ctd"
, with a new column.data
slot.ctd-class
explains the structure
of CTD objects, and also outlines the other functions dealing with them.library(oce)
data(ctd)
SS <- ctd[["salinity"]]^2
ctdNew <- ctdAddColumn(ctd, SS, "ss",
expression(paste(S^2, "[", PSU^2, "]")))
plotProfile(ctdNew, "ss")
Run the code above in your browser using DataLab