Can you explain the difference between integer and numeric data types in R?

  • Integers can only store whole numbers while numerics can store both whole numbers and decimal values
  • Integers can store decimal values while numerics cannot
  • Integers take up more memory than numerics
  • There's no difference, the two terms can be used interchangeably
Numeric data types in R can store both integers and decimal values, while Integer data types can only store whole numbers.
Add your answer
Loading...

Leave a comment

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