Question: In R studio if there is a categorical vector that has only two labels, for example ( yes , no ) what is the code
In R studio if there is a categorical vector that has only two labels, for example yesno what is the code to convert it into numerical, also what is the code to creating a sidebyside properly labeled plots for the variables separately for the yes, and no vector. If I was to compare a sidebyside box plot for the yes and no categorical data to determine another variable that is related to them, but that is also numerical. What is the code for that?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
