Skip to content

Commit

Permalink
mutate output is visible. Fixes #11.
Browse files Browse the repository at this point in the history
- The result of `mutate()` for a data table is always visible (#11).
  • Loading branch information
Kirill Müller committed Jul 2, 2016
1 parent 3bc66be commit 2ceec18
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/tbl-dt.r
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,8 @@ mutate_.data.table <- function(.data, ..., .dots) {
.data <- dt_subset(.data, , j, dots[[i]]$env)
}

.data
# Need to use this syntax to make the output visible (#11).
.data[]
}

# Arrange ----------------------------------------------------------------------
Expand Down

0 comments on commit 2ceec18

Please sign in to comment.