Learn R Programming

dwp (version 1.1)

subset.shapeCarcass: Subset Data from an Imported and Formatted Shape File

Description

Subset Data from an Imported and Formatted Shape File

Usage

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

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

Value

object of the same class as x, subsetted to values of select

equal to some element in subset.

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