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 |
What is the difference between a bar-chart and a histogram?
What is power analysis ?
What are r data types?
Why should you adopt R programming language?
Name the functions which helps in importing data from other applications in R?
How would you rename the columns of a dataframe?
What is oop in r?
Describe grep() in r string manipulation?
What are the data types in r on which binary operators can be applied?
What are R topical programming and statistical relevance?
What is the use of lattice package?
How can you load a .csv file in r?