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
You could specify the levels (of the if/else results) to prevent wrong/unexpected concatenation of factors with different levels: factor(ifelse(any(fac == 1), 1, 0), levels = c(0, 1))
But I agree that the expected behaviour would be that the levels are handled automatically similar to unlist(list(factor(0), factor(1))
I response to #1556 with the latest dev version.
I expected the output for group b-1 (2nd row) to be all 0's on the summarised variables.
The text was updated successfully, but these errors were encountered: