Learn R Programming

repfun (version 0.1.2)

ru_datetime: Add numeric datetimes to data frame that only has character versions.

Description

Pass in a data frame and variables ending in "DTC" will have corresponding numeric versions created and saved.

Usage

ru_datetime(dsetin, includevars = NULL)

Value

The incoming data frame with numeric dates and times added will be returned.

Arguments

dsetin

Incoming data frame to have numeric datetimes added.

includevars

Specify which variables ending in DTC will be processed.

Examples

Run this code
library(repfun)
library(knitr)
ae <- repfun::ru_datetime(repfun::ae)
knitr::kable(head(ae[,grepl('(DT$|TM$|DTC$)',names(ae))],5),
             caption = "After Invoking ru_labels()")

Run the code above in your browser using DataLab