| oceSetMetadata {oce} | R Documentation |
Create a copy of an object in which some element of its
metadata slot has been altered, or added.
oceSetMetadata(object, name, value, note = "")
object |
an oce object. |
name |
String indicating the name of the |
value |
Value for the item. |
note |
Either empty (the default), a character string, or |
An oce object, the metadata slot of which has
been altered either by adding a new item or modifying an existing
item.
Dan Kelley
Other things related to the metadata slot:
oceDeleteMetadata(),
oceGetMetadata(),
oceRenameMetadata()
# Add an estimate of MLD (mixed layer depth) to a ctd object library(oce) data(ctd) ctdWithMLD <- oceSetMetadata(ctd, "MLD", 3) ctdWithMLD[["MLD"]] # 3