new_rcrd | R Documentation |
The rcrd class extends vctr. A rcrd is composed of 1 or more fields, which must be vectors of the same length. Is designed specifically for classes that can naturally be decomposed into multiple vectors of the same length, like POSIXlt, but where the organisation should be considered an implementation detail invisible to the user (unlike a data.frame).
new_rcrd(fields, ..., class = character())
fields |
A list or a data frame. Lists must be rectangular
(same sizes), and contain uniquely named vectors (at least
one). |
... |
Additional attributes |
class |
Name of subclass. |
Record-style objects created with new_rcrd()
do not do much on their own.
For instance they do not have a default format()
method, which means printing
the object causes an error. See Record-style objects(https://vctrs.r-lib.org/articles/s3-vector.html?q=record#record-style-objects
for details on implementing methods for record vectors.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.