Learn R Programming

MM (version 1.6-5)

Extract.paras: 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

Examples

Run this code
# NOT RUN {
x <- paras(4)
x[2] <- 0.1
x[1,2] <- 0.12
x

# }

Run the code above in your browser using DataLab