Question: The droplevels() function drops unused levels from a factor or from factors in a data frame. Extract the observations in the data for which we

The droplevels() function drops unused levels from a factor or from factors in a data frame. Extract the observations in the data for which we know the mother's smoker status (either smoker or non-smoker) and drop the unused level from the Habit variable. Save this subset of the data as a separate data frame in the workspace. The subset of the data should contain all of the variables from the original data

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 Mathematics Questions!