Learn R Programming

sftime (version 0.3.0)

print.sftime: Prints an sftime object

Description

Prints an sftime object

Usage

# S3 method for sftime
print(x, ..., n = getOption("sf_max_print", default = 10))

Value

x (invisible).

Arguments

x

An object of class sftime.

...

Currently unused arguments, for compatibility.

n

Numeric value; maximum number of printed elements.

Examples

Run this code
g <- st_sfc(st_point(c(1, 2)), st_point(c(1, 3)), st_point(c(2, 3)), 
     st_point(c(2, 1)), st_point(c(3, 1)))
tc <- Sys.time() + 1:5
x <- st_sftime(a = 1:5, g, time = tc)
print(x)
print(x[0, ])

Run the code above in your browser using DataLab