Skip to contents

Calculate River Invertebrate Classification Tool (RICT) predictions

Usage

rict_predict(
  data = NULL,
  all_indices = FALSE,
  taxa = FALSE,
  taxa_list = c("TL1", "TL2", "TL3", "TL4", "TL5"),
  rows = NULL,
  area = NULL,
  crs = NULL
)

Arguments

data

Dataframe of predictive environmental values - variables dependent on input for model 44, model 1, NI or GB

SITE

Site reference number

Waterbody

Water body identifier

LATITUDE

Location point

LONGITUDE

Location point

LOG.ALTITUDE

Logarithmic value for Altitude

LOG.DISTANCE.FROM.SOURCE

Logarithmic value for Distance from source

LOG.WIDTH

Logarithmic value for Stream Width

LOG.DEPTH

Logarithmic value for Stream Depth

MEAN.SUBSTRATUM

Calculated mean substratum

DISCHARGE.CATEGORY

Discharge category

ALKALINITY

Alkalinity

LOG.ALKALINITY

Logarithmic value for Alkalinity

LOG.SLOPE

Logarithmic value for Slope

MEAN.AIR.TEMP

Calculated Mean Air Temperature

AIR.TEMP.RANGE

Calculated Air Temperature Range

p1 – p43

Calculated probability of end group membership

SuitCode

Calculated Suitability code for test site

BelongsTo_endGrp

Predicted probable end group the test site belongs to

All Indices...

...Predicted index value for All Indices

SPR_SEASON_ID

ID number for season

SPR_TL2_WHPT_ASPT (ABW,DISTFAM)

Observed value for WHPT NTAXA for spring

SPR_TL2_WHPT_NTAXA (ABW,DISTFAM)

Observed value for WHPT ASPT for spring

SPR_NTAXA_BIAS

Bias value used

SUM_SEASON_ID

Summary ID

SUM_TL2_WHPT_ASPT (ABW,DISTFAM)

Observed value for WHPT ASPT for summer

SUM_TL2_WHPT_NTAXA (ABW,DISTFAM)

Observed value for WHPT NTAXA for summer

SUM_NTAXA_BIAS

Bias value used

AUT_SEASON_ID

Aut ID

AUT_TL2_WHPT_ASPT (ABW,DISTFAM)

Observed value for WHPT ASPT for autumn

AUT_TL2_WHPT_NTAXA (ABW,DISTFAM)

Observed value for WHPT NTAXA for autumn

AUT_NTAXA_BIAS

Bias value used

Area_CEH
AltBar_CEH
Alt_CEH
DFS_CEH
Slope_CEH
QCat_CEH
Peat_CEH
Chalk_O1_CEH
Clay_O1_CEH
Hardrock_O1_CEH
Limestone_O1_CEH
area

ni or gb

all_indices

Boolean - Return all indices in output (default only returns WHPT indices).

taxa

Boolean - Return taxa predictions (default returns indices).

taxa_list

Vector of taxa lists to predict default all lists i.e. c("TL1", "TL2", "TL3", "TL4", "TL5").

rows

Number (integer) of rows (one site per row) to predict taxa. Default is all rows.

area

Area is by detected by default from the NGR, but you can provide the area parameter either 'iom', 'gb, 'ni' for testing purposes.

crs

optionally set crs to `29903` for Irish projection system.

Value

Dataframe of predicted biotic scores and probability of observed values falling into each statistical grouping of rivers.

See also

rict_classify to run classification using rict_predict outputs

Examples

if (FALSE) {
predictions <- rict_predict(demo_observed_values)
}