format_datetime: Format datetime columns to a specified format

format_datetimeR Documentation

Format datetime columns to a specified format

Description

Format datetime columns to a specified format

Usage

format_datetime(df, regex, timeformat = "%Y-%m-%d %H:%M:%S", ...)

Arguments

df

a data frame

regex

a character used for regular expression lookup of matching columns to format with

timeformat

datetime format to be used for formating columns with (see 'help(strptime)')


fjoe88/d8ahelper documentation built on Feb. 6, 2023, 7:55 a.m.