whpt_predict: Predict WHPT

View source: R/whpt-predict.R

whpt_predictR Documentation

Predict WHPT

Description

Run prediction for WHPT ASPT and NTAXA Based on whpt-metric-model - using random forest / GIS predictors only based on RIVPACS reference dataset. See demo_data for data structure / predictors required. Predictors come from EA website: https://environment.data.gov.uk/DefraDataDownload/?mapService=EA/RICT&mode=spatial

Usage

whpt_predict(data)

Arguments

data

Data frame of date_taken and GIS based predictors with 14 variables. Variable names can be lower or upper-case, and in any order. Extra variables can be present, these variables are ignored.

sample_id

Sample ID - unique identifer for sample

date_taken

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

ngr

National Grid Reference - Great Britain only in ⁠NT 00990 65767⁠ format only

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

Value

Dataframe consisting of three variables sample_id, index and predicted_response.

sample_id

Sample ID - unique identifer for sample

index

Either ⁠Reference ASPT⁠ or ⁠Reference NTAXA⁠)

predicted_response

Predicted response value

Examples

predictions <- whpt_predict(demo_data)

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