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
fifelse(c(TRUE, FALSE), NA, 1L)
# Error in fifelse(c(TRUE, FALSE), NA, 1L) :
# 'yes' is of type logical but 'no' is of type integer. Please make sure that both arguments have the same type.
that typeof(NA) is logical I think is an implementaton detail we can obscure from users. we should coerce NA to NA_integer_ in this case.
that
typeof(NA)islogicalI think is an implementaton detail we can obscure from users. we should coerceNAtoNA_integer_in this case.