If a vector in R is created with elements of different data types, R will coerce the elements to the most flexible type, which is ______.

  • character
  • numeric
  • logical
  • integer
If a vector in R is created with elements of different data types, R will coerce the elements to the most flexible type, which is the character data type. The character type is considered the most flexible because it can represent other types by converting them to strings.
Add your answer
Loading...

Leave a comment

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