s3vec: Construct an s3vec object

Description Usage Arguments Examples

Description

new_s3vec is a low-level constructor that takes a list of s3 objects of the same class. s3vec constructs an s3vec from individual s3 objects and as.s3vec is a S3 generic that converts existing objects. is_s3vec or is.s3vec test whether the object is an s3vec object.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13

Arguments

...

Individual s3 objects

x

A list of s3 objects, or other object to coerce

Examples

1
2
3
4
5
6
7
a <- structure("a", class = "foo")
b <- structure("b", class = "foo")

new_s3vec(list(a, b))
s3vec(a, b)

as.s3vec(list(a, b))

nbenn/s3vec documentation built on May 13, 2019, 6:15 p.m.