vctrs0.6.5 package

Vector Helpers

vec_detect_complete

Complete

vec_duplicate

Find duplicated values

vec_empty

Is a vector empty

vec_equal

Equality

vec_equal_na

Missing values

as-is

AsIs S3 class

data_frame

Construct a data frame

df_list

Collect columns for data frame construction

df_ptype2

Coercion between two data frames

faq-compatibility-types

FAQ - How is the compatibility of vector types decided?

faq-error-incompatible-attributes

FAQ - Error/Warning: Some attributes are incompatible

faq-error-scalar-type

FAQ - Error: Input must be a vector

fields

Tools for accessing the fields of a record.

howto-faq-coercion-data-frame

FAQ - How to implement ptype2 and cast methods? (Data frames)

howto-faq-coercion

FAQ - How to implement ptype2 and cast methods?

howto-faq-fix-scalar-type-error

FAQ - Why isn't my class treated as a vector?

int64

64 bit integers

internal-faq-matches-algorithm

Internal FAQ - Implementation of vec_locate_matches()

internal-faq-ptype2-identity

Internal FAQ - vec_ptype2(), NULL, and unspecified vectors

list_drop_empty

Drop empty elements from a list

list_of

list_of S3 class for homogenous lists

maybe_lossy_cast

Lossy cast error

missing

Missing values

name_spec

Name specifications

new_data_frame

Assemble attributes for data frame construction

new_date

Date, date-time, and duration S3 classes

new_factor

Factor/ordered factor S3 class

new_list_of

Create list_of subclass

new_partial

Partial type

new_rcrd

rcrd (record) S3 class

new_vctr

vctr (vector) S3 class

obj_is_list

List checks

obj_print

print() and str() generics.

op-empty-default

Default value for empty vectors

order-radix

Order and sort vectors

partial_factor

Partially specify a factor

partial_frame

Partially specify columns of a data frame

reference-faq-compatibility

FAQ - Is my class compatible with vctrs?

runs

Runs

s3_register

Register a method for a suggested dependency

table

Table S3 class

theory-faq-coercion

FAQ - How does coercion work in vctrs?

theory-faq-recycling

FAQ - How does recycling work in vctrs and the tidyverse?

unspecified

A 1d vector of unspecified type

vctrs-conditions

Custom conditions for vctrs package

vctrs-data-frame

vctrs methods for data frames

vctrs-package

vctrs: Vector Helpers

vec-rep

Repeat a vector

vec-set

Set operations

vec_arith

Arithmetic operations

vec_as_index

Convert to an index vector

vec_as_location

Create a vector of locations

vec_as_names

Retrieve and repair names

vec_as_names_legacy

Repair names with legacy method

vec_as_subscript

Convert to a base subscript type

vec_assert

Assert an argument has known prototype and/or size

vec_bind

Combine many data frames into one data frame

vec_c

Combine many vectors into one vector

vec_cast

Cast a vector to a specified type

vec_cbind_frame_ptype

Frame prototype

vec_chop

Chopping

vec_compare

Compare two vectors

vec_count

Count unique values in a vector

vec_data

Extract underlying data

vec_default_ptype2

Default cast and ptype2 methods

vec_expand_grid

Create a data frame from all combinations of the inputs

vec_fill_missing

Fill in missing values with the previous or following value

vec_group

Identify groups

vec_init

Initialize a vector

vec_interleave

Interleave many vectors into one vector

vec_is_list

List checks

vec_locate_matches

Locate observations matching specified conditions

vec_locate_sorted_groups

Locate sorted groups

vec_match

Find matching observations across vectors

vec_math

Mathematical operations

vec_names

Get or set the names of a vector

vec_order

Order and sort vectors

vec_proxy

Proxy and restore

vec_proxy_compare

Comparison and order proxy

vec_proxy_equal

Equality proxy

vec_ptype

Find the prototype of a set of vectors

vec_ptype_full

Vector type as a string

vec_ptype2

Find the common type for a pair of vectors

vec_rank

Compute ranks

vec_recycle

Vector recycling

vec_repeat

Expand the length of a vector

vec_seq_along

Useful sequences

vec_size

Number of observations

vec_slice

Get or set observations in a vector

vec_split

Split a vector into groups

vec_type

Deprecated type functions

vec_unchop

Chopping

vec_unique

Find and count unique values

vector-checks

Vector checks

Defines new notions of prototype and size that are used to provide tools for consistent and well-founded type-coercion and size-recycling, and are in turn connected to ideas of type- and size-stability useful for analysing function interfaces.

  • Maintainer: Davis Vaughan
  • License: MIT + file LICENSE
  • Last published: 2023-12-01