Last chance! 50% off unlimited learning
Sale ends in
This function may be used to rename elements within the
data
slot of oce
objects. It also updates
the processing log of the returned object, indicating
the changes.
renameData(x, old = NULL, new = NULL)
An oce
object, i.e. one inheriting from
oce-class
.
Vector of strings, containing old names.
Vector of strings, containing old names.
# NOT RUN {
data(ctd)
new <- renameData(ctd, "temperature", "temperature68")
new <- oceSetData(new, name="temperature",
value=T90fromT68(new[["temperature68"]]),
unit=list(unit=expression(degree*C),scale="ITS=90"))
# }
Run the code above in your browser using DataLab