Learn R Programming

tabula (version 1.5.1)

subset: Extract or Replace Parts of an Object

Description

Operators acting on objects to extract or replace parts.

Usage

# S4 method for BootCA
[(x, i, j, drop = TRUE)

# S4 method for DateModel [(x, i, j, drop = TRUE)

# S4 method for DiversityIndex [[(x, i)

# S4 method for DateModel [[(x, i)

# S4 method for BootCA [[(x, i)

# S4 method for PermutationOrder [[(x, i)

Arguments

x

An object from which to extract element(s) or in which to replace element(s).

i, j

Indices specifying elements to extract or replace. Indices are numeric, integer or character vectors or empty (missing) or NULL. Numeric values are coerced to integer as by as.integer (and hence truncated towards zero). Character vectors will be matched to the name of the elements. An empty index (a comma separated blank) indicates that all entries in that dimension are selected.

drop

A logical scalar: should the result be coerced to the lowest possible dimension? This only works for extracting elements, not for the replacement.

Value

A subsetted object.

See Also

Other mutator: access