extract_labelled {labelVector}R Documentation

Extract or Replace Parts of Labelled Vectors

Description

Extraction and replacement methods for labelled vectors.

Usage

## S3 method for class 'labelled'
x[i, ...]

## S3 replacement method for class 'labelled'
x[i, ...] <- value

Arguments

x

An atomic vector inheriting the labelled class.

i

The elements to extract.

...

Arguments to pass to other methods.

value

typically a vector of similar class of length i

See Also

Extract

Examples


x <- set_label(1:10, "Integers")
x[1:3]

x[3] <- pi
x


[Package labelVector version 0.1.2 Index]