[R] Date as Integer

Shivi82 shivibhatia at ymail.com
Sat Aug 22 09:43:05 CEST 2015


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.



More information about the R-help mailing list