Extract: Extract or Replace Parts of brobs or glubs

Description Arguments Value Note Author(s) Examples

Description

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

Arguments

x

Object of class brob or glub

i

elements to extract or replace

value

replacement value

Value

Always returns an object of the same class as x.

Note

If x is a numeric vector and y a brob, one might expect typing x[1] <- y to result in x being a brob. This is impossible, according to John Chambers.

Author(s)

Robin K. S. Hankin

Examples

1
2
3
4
5
6
7
a <- as.brob(10)^c(-100,0,100,1000,1e32)

a[4]

a[4] <- 1e100

a

Brobdingnag documentation built on May 2, 2019, 8:46 a.m.