List and define some basic data structures in R.

  1. Vector—a one-dimensional data structure used for storing values of the same data type.
  2. List—a multi-dimensional data structure used for storing values of any data type and/or other data structures.
  3. Matrix—a two-dimensional data structure used for storing values of the same data type.
  4. Data frame—a two-dimensional data structure used for storing values of any data type, but each column must store values of the same data type.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *