Learn R Programming

DTSg (version 0.6.0)

summary.DTSg: Time Series Summary

Description

Calculates summary statistics of selected columns of a DTSg object.

Usage

# S3 method for DTSg
summary(object, cols = self$cols(), ...)

Arguments

object

A DTSg object (S3 method only).

cols

A character vector specifying the columns whose values shall be summarised.

Further arguments passed on to summary.data.frame.

Value

Returns a table.

See Also

DTSg, cols, summary.data.frame, table

Examples

Run this code
# NOT RUN {
# new DTSg object
x <- DTSg$new(values = flow)

# calculate summary statistics
## R6 method
x$summary()

## S3 method
summary(object = x)

# }

Run the code above in your browser using DataLab