I have an xlsx
file with a number of variables (columns). Quite a few are listed in date format (MM/DD YYYY HH:MM A/P) in the .xlsx file. When I load this file into R using read.xlsx
, all of the variables with date format load as POSIXct
except ONE, which always loads as a factor
variable. Any thoughts on why this may be?
For reference I am loading the data using code similar to that below:
data <- read.xlsx("file.xlsx", sheetIndex = 1, header = TRUE)