List and define some basic data types in R.

There are a few data types in R, including: 

  1. Numeric—decimal numbers.
  2. Integer—whole numbers.
  3. Character—a letter, number, or symbol, or any combination of them, enclosed in regular or single quotation marks.
  4. Factor—categories from a predefined set of possible values, often with an intrinsic order.
  5. Logical—the Boolean values TRUE and FALSE, represented under the hood as 1 and 0, respectively.

Comments

Leave a Reply

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