I'm parsing a file, converting the date in a Date type and adding 2 columns based on the date.
data <- read.csv(csvFile, na.strings = "")
## Convert date column as Date type
data[["date"]] <- as.POSIXct(data[["date"]])
## Add a time and day column
data[["time"]] <- strftime(data[["date"]], format="%H:%M")