Learn R Programming

simsem (version 0.2-8)

extract: Extract a part of an object

Description

Extract a part of an object, such as selecting only a subset of variables from a model specification

Usage

extract(object, ...)

Arguments

object
The extracted object
...
The specification of the extracted part

Value

  • The extracted object

See Also

This is the list of classes that can use the extract method.
  • SimMatrix
  • SimVector
  • SimSet
  • SimDataDist

Examples

Run this code
extract(1:10, c(4, 5))
extract(diag(3), 1, 2:3)

Run the code above in your browser using DataLab