Skip to content

Commit e1fd079

Browse files
committed
changes made
1 parent 5a47ce0 commit e1fd079

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/fcast.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,9 +220,9 @@ dcast.data.table = function(data, formula, fun.aggregate = NULL, sep = "_", ...,
220220
setkeyv(dat, varnames)
221221
if (length(rhsnames)) {
222222
lhs = shallow(dat, lhsnames); rhs = shallow(dat, rhsnames); val = shallow(dat, valnames)
223-
# handle drop=TRUE/FALSE - Update: Logic moved to R, AND faster than previous version. Take that... old me :-).
223+
# handle drop=TRUE/FALSE - Update: Logic moved to R, AND faster than previous version. Take that... old me :-).
224224
if (all(drop)) {
225-
map = setDT(lapply(list(lhsnames, rhsnames), function(cols) frankv(dat, cols=cols, ties.method="dense", na.last=FALSE)))
225+
map = setDT(lapply(list(lhsnames, rhsnames), function(cols) frankv(dat, cols=cols, ties.method="dense", na.last=FALSE))) # #2202 fix
226226
maporder = lapply(map, order_)
227227
mapunique = lapply(seq_along(map), function(i) .Call(CsubsetVector, map[[i]], maporder[[i]]))
228228
lhs = .Call(CsubsetDT, lhs, maporder[[1L]], seq_along(lhs))

0 commit comments

Comments
 (0)