extract: Extract or Replace parts of dfts object

[.dftsR Documentation

Extract or Replace parts of dfts object

Description

Extract or replace subsets of dfts objects.

Usage

## S3 method for class 'dfts'
x[i, j, ...]

## S3 replacement method for class 'dfts'
x[i, j] <- value

Arguments

x

A dfts object. See dfts().

i, j

Numerics for elements to extract.

...

Additional parameters from generic function for extensions.

value

A suitable replacement value for selection.

Value

A dfts object.

Examples

electricity[1:3]
electricity[1:3, ]
electricity[1:2, 1:4]
electricity[, 1:4]
tmp <- dfts(matrix(1:9, 3, 3))
tmp$data
tmp[1, 1] <- 10
tmp$data

fChange documentation built on June 21, 2025, 9:08 a.m.