Extract.paras | R Documentation |
paras
objectMethods for "["
and "[<-"
, i.e., extraction or
subsetting of paras
objects.
x |
Object of class |
i |
Elements to extract or replace |
value |
Replacement value |
Always returns an object of class paras
.
x[i]
x[i] <- value
x[i,j]
x[i,j] <- value
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.
Robin K. S. Hankin
x <- paras(4)
x[2] <- 0.1
x[1,2] <- 0.12
x
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.