Skip to contents

Print/format tf-objects.

Usage

# S3 method for tf
print(x, n = 5, ...)

# S3 method for tfd_reg
print(x, n = 5, ...)

# S3 method for tfd_irreg
print(x, n = 5, ...)

# S3 method for tfb
print(x, n = 5, ...)

# S3 method for tf
format(
  x,
  digits = 2,
  nsmall = 0,
  width = options()$width,
  n = 5,
  prefix = TRUE,
  ...
)

Arguments

x

any R object (conceptually); typically numeric.

n

how many elements of x to print out

...

further arguments passed to or from other methods.

digits

a positive integer indicating how many significant digits are to be used for numeric and complex x. The default, NULL, uses getOption("digits"). This is a suggestion: enough decimal places will be used so that the smallest (in magnitude) number has this many significant digits, and also to satisfy nsmall. (For more, notably the interpretation for complex numbers see signif.)

nsmall

the minimum number of digits to the right of the decimal point in formatting real/complex numbers in non-scientific formats. Allowed values are 0 <= nsmall <= 20.

width

default method: the minimum field width or NULL or 0 for no restriction.

AsIs method: the maximum field width for non-character objects. NULL corresponds to the default 12.

prefix

used internally.

Value

prints out x and returns it invisibly