Learn R Programming

MM (version 1.6-7)

Extract.paras: Extract or Replace parameters of a paras object

Description

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

Value

Always returns an object of class paras.

Methods

  • x[i]

  • x[i] <- value

  • x[i,j]

  • x[i,j] <- value

Arguments

x

Object of class paras

i

Elements to extract or replace

value

Replacement value

Author

Robin K. S. Hankin

Examples

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

Run the code above in your browser using DataLab