Question: A data analyst writes the following code in a script and gets an error. What is wrong with their code? penguins % > % filter

A data analyst writes the following code in a script and gets an error. What is wrong with their code?
penguins %>%
filter(flipper_length_mm ==200)%>%
group_by(species)%>%
summarize(mean = mean(body_mass_g))%>%
1 point
They are using too many functions.
The first line should have a pipe operator before penguins.
The last line should not have a pipe operator.
They are using the wrong characters for the pipe operator.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!