Question: A data analyst is working with a data frame called zoo _ records. They want to create a new column named is _ large _

A data analyst is working with a data frame called zoo_records. They want to create a new column named is_large_animal that signifies if an animal has a weight of more than 199 kilograms. What code chunk lets the analyst create the is_large_animal column?
1 point
zoo_records %>% mutate(weight >199<- is_large_animal)
zoo_records %>% mutate(is_large_animal = weight >199)
zoo_records %>% mutate(weight >199= is_large_animal)
zoo_records %>% mutate(is_large_animal == weight >199)

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!