Skip to contents

The interlaced type extends vectors by adding a "missing reason" channel which can be used to distinguish different types of missingness. The interlaced() function constructs a new interlaced vector from a vector or list of values.

Usage

interlaced(x, na = NULL)

as.interlaced(x, na = NULL, ...)

# Default S3 method
as.interlaced(x, na = NULL, ...)

# S3 method for class 'interlacer_interlaced'
as.interlaced(x, ...)

# S3 method for class 'data.frame'
as.interlaced(x, ...)

is.interlaced(x)

Arguments

x

A vector or list of values

na

A vector of values to interpret as missing values

...

Additional arguments, not used

Value

An interlaced vector