oceRenameData | R Documentation |
Rename an item within the data
slot of an oce object, also changing
dataNamesOriginal
in the metadata
slot, so that the [[
accessor will
still work with the original name that was stored in the data.
oceRenameData(object, old, new, note = "")
object |
an oce object. |
old |
character value that matches the name of an item in |
new |
character value to be used as the new name that matches the name of an item in
|
note |
character value that holds an explanation of the reason for the change. If this
is a string of non-zero length, then this is inserted in the processing log of the returned
value. If it is |
Dan Kelley
Other things related to the data slot:
oceDeleteData()
,
oceGetData()
,
oceSetData()
library(oce)
data(ctd)
CTD <- oceRenameData(ctd, "salinity", "SALT")
stopifnot(all.equal(ctd[["salinity"]], CTD[["SALT"]]))
stopifnot(all.equal(ctd[["sal00"]], CTD[["SALT"]]))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.