priors,FLBRP-method | R Documentation |
Assign an FLPar object as an attribute to an FLBRP object using the '<-' operator.
## S4 method for signature 'FLBRP'
priors(object)
x |
An object of class FLBRP |
i |
The name of the attribute to be assigned (as a character string) |
value |
An object of class FLPar to be assigned as an attribute |
The modified FLBRP object with the new attribute
## Not run:
eql=FLBRP(...) # Create or load an FLBRP object
eql["priors"]<-FLPar()
attributes(eql)$priors=calcPriors(eql)
## End(Not run)
setMethod("[<-", signature(object="FLBRP", i="priors", j="missing", value="FLPar"),
function(object, i, value) {
if (!inherits(value, "FLPar")) {
stop("The assigned value must be an FLPar object")
}
attributes(object,i)=value
return(object)})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.