The 365 Data Science team is proud to invite you to our own community forum. A very well built system to support your queries, questions and give the chance to show your knowledge and help others in their path of becoming Data Science specialists.
Ask
Anybody can ask a question
Answer
Anybody can answer
Vote
The best answers are voted up and moderated by our team

R programming

R programming

0
Votes
1
Answer

when i run this code at the beginning it does not give this error but when i save and open my script after sometime it say function not found
 
code-
star.species <- group_by(star, species)
star.srm <- summarise(star.species, count = n(), avg.mass = mean(mass, na.rm = T))
filter(star.srm, count >1)
my.data
 
error-
Error in group_by(star, species) : could not find function “group_by”

1 Answer

365 Team
0
Votes

Hi Viraj, 
the function group_by is part of the ‘dplyr’ package. 
So, you need to include the library in your script to avoid this error. Just add the following line at the beginning of your script:
library(“tidyverse”)
 
Best, 
Eli

Thank you!

6 months