English, asked by nagasaikasina9551, 1 year ago

Which of the following data structures in R can store different types of data?

Answers

Answered by aqsaahmed19945
0

Everything present in R is an object.

R contains six atomic vector kinds which are as follows:

  1. Characters
  2. Numerics ( whether decimal or real)
  3. Integers
  4. Logical expressions
  5. Complex numbers

It contains single type of data.

  1. characters: "a", "swc"
  2. numerics: 4, 16.5
  3. integers: 2L (the L ascertains R to save this as an integer)
  4. Logical expressions: FALSE, TRUE
  5. Complex numbers: 3+5i (complex numbers with real and imaginary parts)

R provides many functions to examine features of vectors and other objects, for example

  • class( ) - what kind of objects are this(high-level)?
  • type of( ) - what is the data type of object (low-level)?
  • length( ) - What about two dimensional objects and its length?
  • attributes( ) - does it contain any meta data?
Similar questions