Learn R Programming

MachineShop (version 3.5.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)

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

# 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,ANY,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 Resample,ANY,ANY,ANY [(x, i, j, ..., drop = FALSE)

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

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

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

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

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.