Learn R Programming

ksformat (version 0.3.5)

.apply_datetime_format: Apply a date/time format to a vector

Description

Handles Date, POSIXct, numeric (R epoch), and character inputs.

Usage

.apply_datetime_format(x, format, keep_na = FALSE)

Value

Character vector of formatted values

Arguments

x

Input vector

format

A ks_format object with date/time/datetime type

keep_na

Logical. Preserve NA instead of applying missing label.