I have a data frame that has columns date and volume.
Trying to sum up the volumes by date i used:
volume_per_month <- aggregate(x ,by = list(x$date), FUN = sum)
I get :
Error in Summary.Date(c(14610, 14610, 14610, 14610, 14610, 14610, 14610, : sum not defined for "Date" objects
Any ideas? I ran this before without problems but used this recently :
lct <- Sys.getlocale("LC_TIME");
Sys.setlocale("LC_TIME", "C")
not sure if relate.d
Thanks