head.hyper2: First few terms of a distribution

head.hyper2R 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 hyper2

...

Further arguments, passed to head()

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)



hyper2 documentation built on June 22, 2024, 9:57 a.m.