Learn R Programming

fanplot (version 3.3)

head.pn: Return the First Part of an pn Object

Description

Return the first part of an pn Object.

Usage

## S3 method for class 'pn':
head(x, p = NULL, ...)

Arguments

x
A pn object.
p
Percentiles to be printed. These must be between 0 and 100 (inclusive). Percentiles greater than 50, if not given, are automatically calculated as 100-p. Values can be non-integers.
...
Other arguments passed to add head.

Value

  • The top part of pn object.

Details

Prints the head of the pn object. Note, p refers to the percentiles and not column numbers.

Examples

Run this code
th.pn <- pn(sims = th.mcmc, p=c(1,5,6,90))
head(th.pn)
head(th.pn, p=6)
head(th.pn, p=6, n=3)

Run the code above in your browser using DataLab