whpts: Assess WHPT Consistency

View source: R/whpts.R

whptsR Documentation

Assess WHPT Consistency

Description

Assess if WHPT scores are consistent with expected classification.

Usage

whpts(data)

Arguments

data

Dataframe

location_id

Location ID - unique identifer for location

sample_id

Sample ID - unique identifer for sample

question

Question - either ⁠WHPT ASPT Abund⁠ or ⁠WHPT NTAXA Abund⁠

response

Response value to question

NGR

National Grid Reference - Great Britain only

date_taken

Date as character class in 2012-12-31 format only

SX

Coordinated where GIS predictors come from

SY

Coordinated where GIS predictors come from

EX

Coordinated where GIS predictors queried

EY

Coordinated where GIS predictors queried

Altitude

Altitude in metres

d_f_source

Distance from source in metres

logaltbar

Log altitude in metres of catchment upstream

log_area

Log area of catchment upstream in km squared

disch_cat

Discharge category

slope

Slope in m / km

chalk

Proporation of chalk in catchment

clay

Proporation of clay in catchment

hardrock

Proporation of hardrock in catchment

limestone

Proporation of limestone in catchment

peat

Proporation of peat in catchment

shape_Length

Length of the river section represented in GIS layer

Reported WHPT Class Year

Reported WHPT Class Year

Typical ASPT Class

Typical expected ASPT Class for this location

Typical NTAXA Class

Typical expected NTAXA Class for this location

quality_element

The type of element being assessed in this case 'River Invertebrates'

Value

Dataframe

sample_id

Sample ID - unique identifer for sample

assessment

Name of assessment completed - int this case 'assessment', 'driver' or 'action'

value

Associated value to the assessment column i.e. the output of the assessment

Examples

results <- whpts(demo_data)

ecodata1/whpt documentation built on Sept. 27, 2024, 9:02 p.m.