Re: [R] Date as Integer

2015-08-24 Thread Shivi82
Hi John, Sorry but if this sounds really as a newbie question. I looked at the data as you suggested using glimpse(name of the dataset) and then View(dput(head(ak,20))) to capture it as a table. Is there an option where i can save this view table & share along. I used dput but that would not w

Re: [R] Date as Integer

2015-08-22 Thread William Dunlap
It would help if you supplied a small dataset so we could reproduce your problem problem. Here is one that gives the same error. (I also moved some parentheses around so "%y-%m-%d" is an argument to as.Date() instead of to group_by().) data.frame(pickdate=paste(sep="-",15,08,c(21,22,21,22,22)),

Re: [R] Date as Integer

2015-08-22 Thread John Kane
age- > From: shivibha...@ymail.com > Sent: Sat, 22 Aug 2015 00:43:05 -0700 (PDT) > To: r-help@r-project.org > Subject: [R] Date as Integer > > Hi All, > > I am using dplyr package and need to find total bills booked grouped on a > date level however my date is inte

Re: [R] Date as Integer

2015-08-22 Thread Jeff Newmiller
Use mutate to change the date before you use group_by. Posting incomplete fragments in your questions is usually not enough to get useful help with R on the internet. Please add the extra few lines of code that would make it reproducible [1] from now on. [1] http://stackoverflow.com/questions/

[R] Date as Integer

2015-08-22 Thread Shivi82
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('int