format_time: Format a vector of time, date, or any numeric values into a...

View source: R/utilities.R

format_timeR Documentation

Format a vector of time, date, or any numeric values into a series of human readable chunks

Description

Format a vector of time, date, or any numeric values into a series of human readable chunks

Usage

format_time(x, date_format = "%Y-%m-%d")

Arguments

x

numeric or Date

date_format

character, format string for dates in output (default: "%Y-%m-%d")

Value

character vector

Examples

format_time(c(1:5, 10, 12, 24, 25))
format_time(as.Date(c("2023-01-01", "2023-01-02", "2023-01-03", "2023-01-05", "2023-01-06")))


PHSKC-APDE/rads documentation built on April 14, 2025, 10:47 a.m.