oce (version 1.2-0)

dataLabel: Try to associate data names with units, for use by summary()

Description

Note that the whole object is not being given as an argument; possibly this will reduce copying and thus storage impact.

Usage

dataLabel(names, units)

Arguments

names

the names of data within an object

units

the units from metadata

Value

a vector of strings, with blank entries for data with unknown units

Examples

Run this code
# NOT RUN {
library(oce)
data(ctd)
dataLabel(names(ctd@data), ctd@metadata$units)
# }

Run the code above in your browser using DataCamp Workspace