parse_time_channel: Parse time_channel character or dttm to numeric seconds

View source: R/read_mnirs_helpers.R

parse_time_channelR Documentation

Parse time_channel character or dttm to numeric seconds

Description

Parse time_channel character or dttm to numeric seconds

Usage

parse_time_channel(x, start_timestamp = NULL, zero_time = FALSE)

Arguments

x

The time column vector: numeric, character, or POSIXct.

start_timestamp

Optional POSIXct from the file header, evaluated lazily only when x is not an absolute date-time series.

zero_time

Logical; re-base numeric time to start from zero.

Value

A list of time (numeric seconds), timestamp (POSIXct vector or NULL), and start_timestamp (POSIXct or NULL).


mnirs documentation built on Sept. 13, 2026, 1:06 a.m.