Which data structure is used to store categorical variables?
Answer / Arun Kumar Shukla
In R, factors are the primary data structure used to store categorical variables. Factors consist of a series of unique levels and corresponding integers (the factor levels are encoded as integers for more efficient storage).
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the use of apply() in R?
What are r data types?
What is the difference between a bar-chart and a histogram?
How to create vectors in r?
Explain general format of matrices in r?
What is a variable assignment?
How would you create a box-plot using “plotly”?
What is the function in r?
What is a dataframe in r?
What will be the result of multiplying two vectors in r having different lengths?
Which function is used to create a histogram visualisation in r programming language?
Explain how to repeat vectors in r?