Question: You want to create a new variable called age _ group that classifies a value from the age column as either child ( under 1

You want to create a new variable called "age_group" that classifies a value from the "age" column as either "child" (under 18) or "adult" (18 and over). Complete the following mutate() function with the appropriate code.
data |>
mutate(age_group =______(age <18,_____,_____)

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!