hyperdirichlet (version 1.5-1)

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

Description

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

Arguments

x
Object of class hyperdirichlet
i
elements to extract or replace
value
replacement value

Value

Always returns an object of class hyperdirichlet.

Methods

  • x[i]
  • x[i] <- value

Examples

Run this code
a <- uniform(4)
a[5] <- 1.2

## Not run: ------------------------------------
# a <- as.hyperdirichlet(a, TRUE)  # recommended way to calculate NC
## ---------------------------------------------

Run the code above in your browser using DataLab