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.

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

Examples

if (FALSE) { x <- so_diet() %>% replace_trace_values() }