Learn R Programming

hyper2 (version 3.0-0)

head.hyper2: First few terms of a distribution

Description

First few terms in a hyperdirichlet distribution

Usage

# S3 method for hyper2
head(x, ...)

Value

Returns a hyper2 object

Arguments

x

Object of class hyper2

...

Further arguments, passed to head()

Author

Robin K. S. Hankin

Details

Function is x[head(brackets(x), ...)]

Examples

Run this code

p <- zipf(5)
names(p) <- letters[1:5]
H <- rank_likelihood(rrank(20,p))
head(H)


Run the code above in your browser using DataLab