Skip to contents

Function to apply cutoffs to feature data

Usage

splnr_apply_cutoffs(features, Cutoffs, inverse = FALSE)

Arguments

features

A sf dataframe with all the feature information

Cutoffs

A single value or a named vector of cutoffs.

inverse

If TRUE, values below the Cutoffs are used. If FALSE (default), values above are kept.

Value

A new sf dataframe that has cutoffs applied.

Examples

df <- splnr_apply_cutoffs(dat_species_prob, Cutoffs = 0.5)