time_strs_to_n_secs: Convert each time string to the number of seconds

View source: R/time_strs_to_n_secs.R

time_strs_to_n_secsR Documentation

Convert each time string to the number of seconds

Description

Convert each time string to the number of seconds

Usage

time_strs_to_n_secs(strs)

Arguments

strs

the time strings as text, for example "12:34:56"

Examples

time_strs <- c("00:00:01", "01:02:03", "1-02:03:04")

# Reduplicated plural: a vector of number of seconds
time_strs_to_n_secs(time_strs)

richelbilderbeek/peregrine documentation built on Jan. 3, 2024, 7:42 p.m.