extract: Extract or Replace parameters of a 'paras' object

Extract.parasR Documentation

Extract or Replace parameters of a paras object

Description

Methods for "[" and "[<-", i.e., extraction or subsetting of paras objects.

Arguments

x

Object of class paras

i

Elements to extract or replace

value

Replacement value

Value

Always returns an object of class paras.

Methods

  • x[i]

  • x[i] <- value

  • x[i,j]

  • x[i,j] <- value

Note

These methods are included for completeness; it's not clear to me that they are likely to be used by anyone. It might be better to always use constructions like x <- paras(4) ; p(x)[2] <- 0.1 instead; YMMV.

Author(s)

Robin K. S. Hankin

Examples

x <- paras(4)
x[2] <- 0.1
x[1,2] <- 0.12
x


MM documentation built on May 29, 2024, 10:10 a.m.