Subset: Returns a subset of the object, ensuring that the resulting...

Description Usage Arguments Value Note

View source: R/subset.R

Description

Returns a subset of the object, ensuring that the resulting object is of the same class.

Extract a subset of GeoTimeseries.

Usage

1
2
3
4
5
6
7
Subset(obj, ...)

## S3 method for class 'GeoTimeseries'
Subset(obj, rows, columns, ...)

## S3 method for class 'GeoExperimentData'
Subset(obj, rows, columns, ...)

Arguments

obj

an object.

...

further arguments passed to or from other methods.

rows

logical vector indicating rows to keep. No missing values are allowed.

columns

character vector indicating columns of the data frame to keep. Columns such as 'date', 'geo', 'period', 'geo.group' and 'assignment', if they exist, they are always included.

Value

An object of the same class as 'obj'.

Note

The arguments 'rows' and 'columns' are *not* evaluated in the environment of the columns of 'obj'; the expressions must be evaluable in the enclosing environment. This behavior is deliberately different from that of 'subset'. The original experiment configuration (periods, geo assignment, treatment assignment) is preserved.


google/GeoexperimentsResearch documentation built on May 17, 2019, 7:42 a.m.