convert_days_to_hours: Convert times in days to times in hours

View source: R/convert_days_to_hours.R

convert_days_to_hoursR Documentation

Convert times in days to times in hours

Description

Convert times in days to times in hours

Usage

convert_days_to_hours(days)

Arguments

days

the days you want to convert to hours, which can be either a character or numeric vector. This can include "day" or "days" and can be from one day to a different day. For example, all of these are acceptable: "day 1", "2", "days 5-6", "day 3 to day 4".

Value

a numeric vector

Examples

convert_days_to_hours("day 1")
# Note that this will give you the full 24-hour period, so "day 1" will 
# give you the numeric vector of 0 and 24. 

# You don't need to include the "day" bit.
convert_days_to_hours(2)

# If you include days in a format anything like "day X to day Y" or
# "day X-Y", we'll give you a numeric vector that includes the full last day.
convert_days_to_hours("day 3 to 4")



shirewoman2/Consultancy documentation built on Feb. 18, 2025, 10 p.m.