Rstudio Script usning msleep database

HI I was use msleep database
then i write this:
msleep %>%
drop_na(msleep$vore) %>%
group_by(msleep$vore) %>%
summarise(lower=min(sleep_total),average=mean(sleep_total),upper=max(sleep_total),difference=max(sleep_total)-min(sleep_total)) %>%
arrange(average) %>%

but i got an error Error in View :
can anyone tell what is the problem? thanks

Try this as the last line

Hi DavoWW i try View(.) it gave me the same thing error Error in View :

I noticed that if i delete this line : drop_na(msleep$vore) %>% it works fine

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.