replace_trace_values: Replace "trace" values in diet data

View source: R/utils.R

replace_trace_valuesR Documentation

Replace "trace" values in diet data

Description

Some diet studies record small amounts of a prey item as "trace". These are encoded in the diet database using the value -999. This function replaces those entries with the nominated numeric value.

Usage

replace_trace_values(x, replace_with = 0)

Arguments

x

data.frame: diet data, as returned by so_diet

replace_with

numeric: value to use as a replacement for "trace" values

Value

data.frame

See Also

so_diet

Examples

## Not run: 
  x <- so_diet() %>% replace_trace_values()

## End(Not run)


SCAR/sohungry documentation built on Nov. 2, 2023, 4:19 p.m.