Overload of print in order to concisely print the results of refLimit

Share:

Description

This function allows for the pretty-printing of a large list object created by calling the refLimit function.

Usage

1
2
## S3 method for class 'interval'
print(x, digits = 4L, quote = TRUE, prefix = "", ...)

Arguments

x

x is an object of type "interval"

digits

minimal number of _significant_ digits. See 'print.default'.

quote

logical, indicating whether or not strings should be printed with surrounding quotes.

prefix

Option to specify a formatting prefix.

...

further arguments passed to or from other methods.

Value

No return value.

Author(s)

Daniel Finnegan

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
result = refLimit(set120)
result

## The function is currently defined as
function (x, digits = 4L, quote = TRUE, prefix = "", ...) 
{
    if (class(x[[1]]) == "interval") {
        lapply(x, print.interval.sub)
    }
    else {
        print.interval.sub(x)
    }
  }