We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dat <- data.frame(Operation = c("Login", "Posted", "Deleted"), `Total Count` = c(5, 25, 40), check.names = FALSE) dat %>% ns_to_percents("row") dat %>% adorn_crosstab()
Error in colSums(dat[, 2:n_col], na.rm = na.rm) : 'x' must be an array of at least two dimensions
I think this is the result of dat[, 2:n_col] returning a vector when n_col = 2. Subsetting with dat[2:n_col] seems to do it.
dat[, 2:n_col]
n_col = 2
dat[2:n_col]
The text was updated successfully, but these errors were encountered:
note in NEWS that adorn_crosstab works on a 2-column df
6fd5cf7
describes #89
bf9b39f
No branches or pull requests
I think this is the result of
dat[, 2:n_col]
returning a vector whenn_col = 2
. Subsetting withdat[2:n_col]
seems to do it.The text was updated successfully, but these errors were encountered: