Explain the different data structures in r?
Answer / Amit Kumar Srivastava
In R, there are several primary data structures: vectors, lists, arrays, matrices, and data frames. Vectors are one-dimensional arrays of any type (numeric, character, logical). Lists can contain elements of any type and are ordered, while arrays have a fixed length and all elements must be of the same type. Matrices are two-dimensional arrays with equal number of rows and columns (numeric by default), and data frames combine a matrix with a list of factors to store both numerical and factor variables.
| Is This Answer Correct ? | 0 Yes | 0 No |
Which function is used to create a boxplot graph in R?
What are sockets in r?
What are the advantages of R?
How many tools for debugging present in r?
Name some functions available in “dplyr” package.
What are the data types in r on which binary operators can be applied?
What is compiler in r?
What is the of use Matrix package?
What is oop in r?
Why is library() function used in r?
Is R is a slow language?
What are prerequisites for r’s c interface?