- Factors
- The term factor refers to a statistical data type used to store categorical variables.
- The difference between a categorical variable and a continuous variable is that a categorical variable can belong to a limited number of categories. A continuous variable, on the other hand, can correspond to an infinite number of values.
- A good example of a categorical variable is the variable 'Gender' (male and Female) ,Blood Groups (A,B,AB,O),Eye Color (amber, blue,brown, gray, green, hazel, or red),Months names (jan,feb,mar,..etc)
- Create a blood group factor
- Order levels differently
- Rename factor levels
- Rename factor levels in customized format
- Nominal Vs Ordinal
- Nominal
- Ordinal
No comments:
Post a Comment