Learn R Programming

Brobdingnag (version 1.3-1)

Extract.brob: Extract or Replace Parts of brobs or glubs

Description

Methods for "[" and "[<-", i.e., extraction or subsetting of brobs and glubs.

Usage

# S4 method for brob
[(x, i, j, ..., drop = TRUE)
# S4 method for glub
[(x, i, j, ..., drop = TRUE)
# S4 method for brobmat
[(x, i, j, ..., drop = TRUE)
# S4 method for brob
[(x, i, j, ...) <- value
# S4 method for glub
[(x, i, j, ...) <- value
# S4 method for brobmat
[(x, i, j, ...) <- value

Value

Always returns an object of the same class as x.

Arguments

x

Object of class brob or glub

i, j, ...

elements to extract or replace

value

replacement value

drop

Boolean, indicating whether to drop the result

Author

Robin K. S. Hankin

Examples

Run this code
a <- as.brob(10)^c(-100,0,100,1000,1e32)

a[4]

a[4] <- 1e100

a

Run the code above in your browser using DataLab