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
which gives TRUE. In contrast is.integer(factor(1:3)) reports FALSE.
Although a factor can be converted to in, it intuitively is not an integer vector. E.g. factor(1:3) + 1 results in an error: In Ops.factor(factor(1:3), 1) : ‘+’ not meaningful for factors
The text was updated successfully, but these errors were encountered:
Example
which gives
TRUE
. In contrastis.integer(factor(1:3))
reportsFALSE
.Although a factor can be converted to in, it intuitively is not an integer vector. E.g.
factor(1:3) + 1
results in an error:In Ops.factor(factor(1:3), 1) : ‘+’ not meaningful for factors
The text was updated successfully, but these errors were encountered: