Hi All,

I am using dplyr package and need to find total bills booked grouped on a
date level however my date is integer. 
In the code below i was trying to change date format from integer. However
it is throwing an error:

"no applicable method for 'group_by_' applied to an object of class
"c('integer', 'numeric')"

ak%>%
  group_by(as.Date(pickdate),"%y%m%d")%>%
  summarise(Total=count(waybill))

Do i need to create a new var first changing the date and then group it or
as.Date will work as i added in dplyr.





--
View this message in context: 
http://r.789695.n4.nabble.com/Date-as-Integer-tp4711377.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to