Skip to content

Commit

Permalink
Add stats namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
gvelasq committed Aug 12, 2018
1 parent 9c1a6e1 commit 86ef221
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/tab.R
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ ftab <- function(x, ..., m = TRUE) {
x_name <- get_x_name()
reset_x_name()
if (m == FALSE) {
x <- na.omit(x)
x <- stats::na.omit(x)
}
vars <- rlang::quos(...)
if (length(vars) == 0L) {
Expand Down
2 changes: 1 addition & 1 deletion R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ ctab <- function(x, ..., m = TRUE) {
if (length(vars) == 2L) {
x <- dplyr::count(x, ...)
if (m == FALSE) {
x <- na.omit(x)
x <- stats::na.omit(x)
}
topvar <- rlang::quo_name(colnames(x[2]))
x <- tidyr::spread(x, 2, 3, fill = 0L)
Expand Down

0 comments on commit 86ef221

Please sign in to comment.