append: Append a vector to an lvec

View source: R/append.R

appendR Documentation

Append a vector to an lvec

Description

Append a vector to an lvec

Usage

append(x, y, ...)

## S3 method for class 'lvec'
append(x, y, clone = TRUE, ...)

## S3 method for class 'ldat'
append(x, y, clone = TRUE, ...)

Arguments

x

lvec to append to.

y

vector to append to x. Is converted to lvec using as_lvec.

...

ignored; used to pass additional arguments to other methods.

clone

should x be cloned first. If not, the input x is modified.

Value

Returns an lvec combining both x and y. When x is NULL a clone of y is returned.


djvanderlaan/lvec_stats documentation built on Oct. 4, 2022, 7:02 p.m.