Foundations

vec_data() vec_proxy()

Extract underlying data

vec_type() vec_type_common() vec_ptype()

Find the prototype of a set of vectors

vec_size() vec_size_common() vec_is_empty()

Number of observations

Casting and combining

vec_c()

Combine many vectors into one vector

vec_rbind() vec_cbind()

Combine many data frames into one data frame

Matching

vec_count()

Count unique values in a vector

vec_duplicate_any() vec_duplicate_detect() vec_duplicate_id()

Find duplicated values

vec_unique() vec_unique_loc() vec_unique_count()

Find and count unique values

vec_match() vec_in()

Find matching observations across vectors

New classes

list_of() as_list_of() validate_list_of() is_list_of() vec_type2(<vctrs_list_of>) vec_cast(<vctrs_list_of>)

list_of S3 class for homogenous lists

Developer tools

new_vctr()

vctr (vector) S3 class

vec_cast() vec_cast_common() vec_restore()

Cast a vector to specified type

vec_list_cast()

Cast a list to vector of specific type

vec_type2()

Find the common type for a pair of vector types

vec_proxy_equal()

Equality proxy

vec_ptype_full() vec_ptype_abbr()

Vector type as a string

stop_incompatible_type() stop_incompatible_cast() stop_incompatible_op() stop_incompatible_size() maybe_lossy_cast() allow_lossy_cast()

Custom conditions for vctrs package

new_rcrd()

rcrd (record) S3 class

fields() n_fields() field() `field<-`()

Tools for accessing the fields of a record.

s3_register()

Register a method for a suggested dependency