Learn R Programming

hyper2 (version 2.0-1)

head.hyper2: First few terms of a distribution

Description

First few terms in a hyperdirichlet distribution

Usage

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

Arguments

x

Object of class hyper2

Further arguments, passed to head()

Value

Returns a hyper2 object

Details

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

Examples

Run this code
# NOT RUN {
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