vec_seq_along {vctrs}R Documentation

Useful sequences

Description

vec_seq_along() is equivalent to seq_along() but uses size, not length. vec_init_along() creates a vector of missing values with size matching an existing object.

Usage

vec_seq_along(x)

vec_init_along(x, y = x)

Arguments

x, y

Vectors

Value

Examples

vec_seq_along(mtcars)
vec_init_along(head(mtcars))

[Package vctrs version 0.6.5 Index]