In R, the ________ data type is used to store categorical data.
- Character
- Complex
- Factor
- Logical
Factors are the data objects which are used to categorize the data and store it as levels. They can store both strings and integers. They are useful in data analysis for statistical modeling.
Loading...
Related Quiz
- In R, the ________ function is used to calculate the natural logarithm of a number.
- Can you describe a scenario where you would need to create a bar chart in R?
- Suppose you're asked to create a bar chart in R that shows the distribution of a categorical variable in a data set. How would you do it?
- Suppose you're asked to write a pair of nested for loops in R to generate a multiplication table. How would you do it?
- In R, you can create a variable using the ________ operator.