oceSetMetadata {oce} | R Documentation |
Set Something in the metadata Slot of an oce Object
Description
Create a copy of an object in which some element of its
metadata
slot has been altered, or added.
Usage
oceSetMetadata(object, name, value, note = "")
Arguments
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 |
Value
An oce object, the metadata
slot of which has
been altered either by adding a new item or modifying an existing
item.
Author(s)
Dan Kelley
See Also
Other things related to the metadata slot:
oceDeleteMetadata()
,
oceGetMetadata()
,
oceRenameMetadata()
Examples
# Add an estimate of MLD (mixed layer depth) to a ctd object
library(oce)
data(ctd)
ctdWithMLD <- oceSetMetadata(ctd, "MLD", 3)
ctdWithMLD[["MLD"]] # 3