View source: R/parse_ankom_time.R
| parse_ankom_time | R Documentation |
Converts ANKOM RF timestamps into elapsed incubation time expressed in hours.
parse_ankom_time(time_raw)
time_raw |
Character vector containing ANKOM timestamps. |
ANKOM RF systems record measurements using timestamps. This function converts those timestamps into elapsed incubation time, measured relative to the first observation.
The resulting values are used throughout rumenGP for:
Data processing
Model fitting
Visualization
Model comparison
In most workflows, this function is called
automatically by process_ankom() and
does not need to be used directly.
A numeric vector containing elapsed incubation time in hours.
read_ankom,
process_ankom,
example_data
timestamps <- c(
"2024-01-01 08:00:00",
"2024-01-01 12:00:00",
"2024-01-01 20:00:00"
)
parse_ankom_time(
timestamps
)
# Typical workflow
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
)
head(
gp$Time_h
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.