replace_trace_values | R Documentation |
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)
x |
data.frame: diet data, as returned by |
replace_with |
numeric: value to use as a replacement for "trace" values |
data.frame
so_diet
## Not run:
x <- so_diet() %>% replace_trace_values()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.