0

I got the error when I use dplyr and lubridate package.

library(lubridate)
library(dplyr)

summary(data)
data %>%
   group_by(yearmonth = format(ymd_hm(Time), "%Y-%m")) %>%
   summarise(Ratio = mean(Emotion == "Positive"))
Zhen
  • 1
  • 4
  • You should check whether you are using the right function (`ymd_hm`) of the `lubridate` parsing function family. You probably chose the wrong one. – eastclintw00d Mar 09 '20 at 22:55
  • [See here](https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example) on making an R question that folks can help with. That includes a sample of data so we can run the code that's giving you an error – camille Mar 10 '20 at 00:11
  • What's the error? – Edward Mar 10 '20 at 10:11

0 Answers0