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 `$`

.

fields(x) n_fields(x) field(x, i) field(x, i) <- value

x | A rcrd, i.e. a list of equal length vectors with unique names. |
---|

#> [1] 3fields(x)#> [1] "x" "y" "z"field(x, "y")#> [1] 3 2 1#> [1] 0.08075014 0.83433304 0.60076089