Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryo-N7 committed Jan 19, 2019
1 parent 9516eba commit 163918e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/id.R
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ id <- function(.variables, drop = FALSE) {
}

id_var <- function(x, drop = FALSE) {
if (!is_null(attr(x, "n")) && !drop) return(x)
if (!is_null(attr(x, "n", exact = TRUE)) && !drop) return(x)

if (is.factor(x) && !drop) {
x_na <- addNA(x, ifany = TRUE)
Expand Down

0 comments on commit 163918e

Please sign in to comment.