Create a copy of an object in which some element of its
metadata slot has been altered, or added.
oceSetMetadata(object, name, value, note = "")
an oce object.
String indicating the name of the
metadata item to be set.
Value for the item.
Either empty (the default), a character string, or
to control additions made to the processing log of the return value. If
note="" then an entry is created based on deparsing the function call.
note is a non-empty string, then that string gets added added
to the processing log. Finally, if
note=NULL, then nothing is
added to the processing log. This last form is useful in cases where
oceSetData is to be called many times in succession, resulting
in an overly verbose processing log; in which case, it might helpful
to use processingLog<- to add a summary entry to the object's
An oce object, the
metadata slot of which has
been altered either by adding a new item or modifying an existing
# Add an estimate of MLD (mixed layer depth) to a ctd object
ctdWithMLD <- oceSetMetadata(ctd
ctdWithMLD[["MLD"]] # 3
#>  3