Learn R Programming

discretes (version 0.1.0)

print.discretes: Print a numeric series

Description

Print a numeric series to the console.

Usage

# S3 method for discretes
print(x, len = 6, ...)

Value

Invisibly returns the input object x.

Arguments

x

Numeric series (numeric vector or object of class "discretes").

len

Number of discrete values to display.

...

Further arguments to pass to downstream methods; currently not used.

Examples

Run this code
print(integers())
print(1 / natural1())
print(-1 / natural1())
print(1 / integers())
print(1 / integers(), len = 1)
print(1 / integers(), len = 0)

Run the code above in your browser using DataLab