Learn R Programming

Rmpfr (version 0.5-3)

str.mpfr: Compactly Show STRucture of Rmpfr Number Object

Description

The str method for objects of class mpfr produces a bit more useful output than the default method str.default.

Usage

## S3 method for class 'mpfr':
str(object, nest.lev, give.head=TRUE, \dots)

Arguments

object
an object of class mpfr.
nest.lev
for str(), typically only used when called by a higher level str().
give.head
logical indicating if the header should be printed.
...
further arguments passed to str.

See Also

mpfr.is.0 for many more utilities.

Examples

Run this code
(x <- c(Const("pi", 64), mpfr(-2:2, 64)))
str(x)
str(list(pi = pi, x.mpfr = x))

Run the code above in your browser using DataLab