select.data: Subsets a CES dataset

View source: R/select.data.R

select.dataR Documentation

Subsets a CES dataset

Description

Select sites from a CES data object, either from a ist of specified sites or habitat.

Usage

select.data(x, sites = 0, habitat = "")

Arguments

x

A CES data object, typically generated by readces()

sites

A vector of site codes

habitat

Two-letter code identifying habitat required. Generally the available codes are 'RB' Reedbed, 'WS' Wet Scrub, 'DS' Dry/Thorn Scrub and 'WD' Woodland but certain countries may have other scheme-specific codes

Details

An easy way of subsetting a CES data object to select particular sites. Experienced users may prefer to do this directly.

Value

A ces data object

Author(s)

Rob Robinson

See Also

readces

Examples

data(ukdata)
sitelist = c(401, 403, 405, 407, 408, 414, 417, 447, 463) # select sites with complete data
complete = select.data(ukdata, sites=sitelist)

scrub = select.data(ukdata, habitat='DS')


btorobrob/cesr documentation built on June 9, 2025, 5:39 a.m.