columnToDate: Convert Column in Data Frame To Date

View source: R/column.R

columnToDateR Documentation

Convert Column in Data Frame To Date

Description

Convert Column in Data Frame To Date

Usage

columnToDate(df, column, dbg = TRUE)

Arguments

df

data frame

column

name of column in x

dbg

if TRUE a debug message is shown

Value

df with column converted to class Date with as.Date

Examples

df <- data.frame(id = 1:2, date = c("2018-10-23", "2018-10-23"))
str(df)

df <- columnToDate(df, "date")
str(df)


KWB-R/kwb.utils documentation built on April 1, 2024, 7:12 a.m.