head.hyper2 {hyper2} | R Documentation |
First few terms of a distribution
Description
First few terms in a hyperdirichlet distribution
Usage
## S3 method for class 'hyper2'
head(x, ...)
Arguments
x |
Object of class |
... |
Further arguments, passed to |
Details
Function is x[head(brackets(x), ...)]
Value
Returns a hyper2
object
Author(s)
Robin K. S. Hankin
Examples
p <- zipf(5)
names(p) <- letters[1:5]
H <- rank_likelihood(rrank(20,p))
head(H)
[Package hyper2 version 3.1-0 Index]