
Last chance! 50% off unlimited learning
Sale ends in
data
.addColumn(x, data, name)
ctd
object, e.g. as read by read.ctd
.data
slot).class
oce
, with a new column.ctdAddColumn
does a similar thing for ctd
objects, and is in fact called, if x
is of class ctd
.library(oce)
data(ctd)
st <- swSigmaTheta(salinity(ctd), temperature(ctd), pressure(ctd))
new <- addColumn(ctd, st, "sigmaTheta")
Run the code above in your browser using DataLab