Skip to content
New issue

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

add_totals_row fails on two-column input #69

Closed
sfirke opened this issue Oct 10, 2016 · 0 comments
Closed

add_totals_row fails on two-column input #69

sfirke opened this issue Oct 10, 2016 · 0 comments

Comments

@sfirke
Copy link
Owner

sfirke commented Oct 10, 2016

cranlogs::cran_downloads("janitor", "last-week") %>% select(-package) %>% add_totals_row()

Error in colSums(dat[, -1], na.rm = na.rm) :
'x' must be an array of at least two dimensions

Caused by subsetting with [, -1] returning a vector and not a data.frame

@sfirke sfirke closed this as completed in 5b38697 Oct 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant