fields: Tools for accessing the fields of a record.
Description
A rcrd behaves like a vector, so length(), names(), and $ can
not provide access to the fields of the underlying list. These helpers do:
fields() is equivalent to names(); n_fields() is equivalent to
length(); field() is equivalent to $.
Usage
fields(x)
n_fields(x)
field(x, i)
field(x, i) <- value
Arguments
x
A rcrd, i.e. a list of equal length vectors with unique names.