time_deci2period: Turn time into period

View source: R/time-funcs.R

time_deci2periodR Documentation

Turn time into period

Description

Turn strings in class hms into periods of time.

Usage

time_deci2period(x, unit = "hour", type = "hm")

Arguments

x

string of class lubridate::hms "HH:MM:SS"

unit

unit to convert to

type

hms or hm

Value

Period

Examples

time_deci2period(8.5)
time_deci2period(1.25, "minute")

LCBC-UiO/Questionnaires documentation built on July 18, 2023, 6:45 p.m.