renameData {oce} | R Documentation |
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)
x |
An |
old |
Vector of strings, containing old names. |
new |
Vector of strings, containing old names. |
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"))