vctrs (version 0.1.0)

new_rcrd: rcrd (record) S3 class

Description

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).

Usage

new_rcrd(fields, ..., class = character())

Arguments

fields

A list. It must possess the following properties:

  • no attributes (apart from names)

  • syntactic names

  • length 1 or greater

  • elements are vectors

  • elements have equal length

...

Additional attributes

class

Name of subclass.