Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started