parse_ankom_time: Parse ANKOM Timestamps

View source: R/parse_ankom_time.R

parse_ankom_timeR Documentation

Parse ANKOM Timestamps

Description

Converts ANKOM RF timestamps into elapsed incubation time expressed in hours.

Usage

parse_ankom_time(time_raw)

Arguments

time_raw

Character vector containing ANKOM timestamps.

Details

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.

Value

A numeric vector containing elapsed incubation time in hours.

See Also

read_ankom, process_ankom, example_data

Examples


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
)


rumenGP documentation built on Oct. 2, 2026, 5:09 p.m.