Learn R Programming

MachineShop (version 2.8.0)

extract: Extract Elements of an Object

Description

Operators acting on data structures to extract elements.

Usage

# S3 method for BinomialVariate
[(x, i, j, ..., drop = FALSE)

# S4 method for DiscreteVariate,ANY,missing,missing [(x, i)

# S3 method for ModelFrame [(x, i, j, ..., drop = FALSE)

# S4 method for ModelFrame,ANY,ANY,ANY [(x, i, j, ..., drop = FALSE)

# S4 method for ModelFrame,ANY,missing,ANY [(x, i, j, ..., drop = FALSE)

# S4 method for ModelFrame,missing,missing,ANY [(x, i, j, ..., drop = FALSE)

# S4 method for RecipeGrid,ANY,ANY,ANY [(x, i, j, ..., drop = FALSE)

# S4 method for Resamples,ANY,ANY,ANY [(x, i, j, ..., drop = FALSE)

# S4 method for Resamples,ANY,missing,ANY [(x, i, j, ..., drop = FALSE)

# S4 method for Resamples,missing,missing,ANY [(x, i, j, ..., drop = FALSE)

# S4 method for SurvMatrix,ANY,ANY,ANY [(x, i, j, ..., drop = FALSE)

Arguments

x

object from which to extract elements.

i, j, ...

indices specifying elements to extract.

drop

logical indicating that the result be returned as an object coerced to the lowest dimension possible if TRUE or with the original dimensions and class otherwise.