Social Media Research

02 R Data Analysis


Question

What are the different Data Types in R


Answer
  • Character: Single character or string
  • Numeric: All types of numbers (including floating point). Automatically converted by R to appropriate sub-types.
  • Integer: Full Integers, no automatic conversion
  • Logical: TRUE/FALSE
  • Complex: Allows the use of complex arithmetic / imaginary numbers e.g. 2+3i
  • Raw: Stores data as raw bytes. Displayed as HEX when printed.
  • Function: Callable R functions.



Comments