subset.shapeCarcass {dwp}R Documentation

Subset Data from an Imported and Formatted Shape File

Description

Subset Data from an Imported and Formatted Shape File

Usage

## S3 method for class 'shapeCarcass'
subset(x, subset, select, ...)

## S3 method for class 'shapeLayout'
subset(x, subset, select, ...)

Arguments

x

object to be subsetted

subset

values to subset by. For example, to subset x to include only turbines "t1" and "t2", then subset = c("t1", "t2"). The name of the column with turbine names is given in select.

select

the name of the column with the values to subset by. For example, to subset x by turbines names "t1" and "t2" as found in the "turbine" column in the data, use select = "turbine" and subset = c("t1", "t2").

...

ignored

Value

object of the same class as x, subsetted to values of select equal to some element in subset.


[Package dwp version 1.1 Index]