Skip to content

Commit

Permalink
Fix another bug with id and integers
Browse files Browse the repository at this point in the history
  • Loading branch information
hadley committed Sep 20, 2010
1 parent af539c2 commit 0d3d01e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions R/id.r
Expand Up @@ -45,11 +45,10 @@ id <- function(.variables, drop = FALSE) {
# browser()

if (drop) {
res <- id_var(res, drop = TRUE)
id_var(res, drop = TRUE)
} else {
as.integer(res)
structure(as.integer(res), n = attr(res, "n"))
}

}
ninteraction <- id

Expand Down

0 comments on commit 0d3d01e

Please sign in to comment.