You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The book says different types will be coerced in order: character -> double -> integer -> logical.
However the arrows don't make sense to me. I would put the arrows in reverse, like logical -> integer -> double -> character. That shows which can become which with implicit coercion. For example, c("a",1) becomes an atomic vector with elements "1" and "a", so in this case double -> character.
Or you could say in terms of "subsets" (although they are not really subsets), logical < integer < double < character.
The text was updated successfully, but these errors were encountered:
The book says different types will be coerced in order: character -> double -> integer -> logical.
However the arrows don't make sense to me. I would put the arrows in reverse, like logical -> integer -> double -> character. That shows which can become which with implicit coercion. For example,
c("a",1)
becomes an atomic vector with elements "1" and "a", so in this case double -> character.Or you could say in terms of "subsets" (although they are not really subsets), logical < integer < double < character.
The text was updated successfully, but these errors were encountered: