detect_datecol: Identifying column index or name in Date or POSIXct format

Description Usage Arguments Examples

View source: R/utilities.R

Description

This function allows you to identify the index or the name of the columns in a data.frame that are in Date or POSIXct format

Usage

1

Arguments

df

data.frame

format

string, the format you are looking for, one of Date or POSIXct. If null, both are considered

return

string, what should the function return as result, either the index or the name of the columns, one of index or name.

Examples

1
detect_datecol(df, format = 'Date', return = 'name')

sitscholl/rebecka_package documentation built on Aug. 25, 2020, 4:20 a.m.