View source: R/exclude_heads.R
| exclude_heads | R Documentation |
Removes one or more bottles from a
rumen_gp object while recording
exclusion information.
exclude_heads(data, heads, reason = NULL)
data |
A |
heads |
Character vector of bottle identifiers to remove. |
reason |
Character vector containing the reason for each exclusion. |
This function is useful for excluding:
Leaking bottles
Sensor failures
Damaged bottles
Biologically implausible observations
Other quality-control issues
Exclusion information is retained to support transparent reporting and reproducible analyses.
A filtered rumen_gp object.
validate_ankom,
flag_model,
process_ankom
files <- example_data()
raw_data <- read_ankom(
files$ankom
)
metadata <- read_metadata(
files$metadata
)
gp <- process_ankom(
raw_data,
metadata,
headspace_ml = 210,
temperature_c = 39
)
gp_filtered <- exclude_heads(
data = gp,
heads = c(
"12",
"18"
),
reason = c(
"Bottle leak",
"Sensor malfunction"
)
)
gp_filtered
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.