Skip to content

Commit 0fb58b5

Browse files
one more resolution
1 parent 324ce38 commit 0fb58b5

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

R/data.table.R

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1652,14 +1652,9 @@ replace_dot_alias = function(e) {
16521652
(jsub %iscall% "[" ||
16531653
(jsub %iscall% "[[" && is.name(jsub[[2L]]) && eval(call('is.atomic', jsub[[2L]]), x, parent.frame()))) &&
16541654
(is.numeric(jsub[[3L]]) || jsub[[3L]] == ".N")
1655-
<<<<<<< HEAD
1656-
headopt = jsub[[1L]]=="head" || jsub[[1L]]=="tail"
1657-
firstopt = (jsub[[1L]]=="first" || jsub[[1L]]=="last") && # 2030, 4239
1658-
!identical(match.call(first, jsub)[["na.rm"]], "row") # first's signature same as last's
1659-
=======
16601655
headopt = jsub %iscall% c("head", "tail")
1661-
firstopt = jsub %iscall% c("first", "last") # fix for #2030
1662-
>>>>>>> master
1656+
firstopt = jsub %iscall% c("first", "last") && # 2030, 4239
1657+
!identical(match.call(first, jsub)[["na.rm"]], "row") # first's signature same as last's
16631658
if ((length(jsub) >= 2L && jsub[[2L]] == ".SD") &&
16641659
(subopt || headopt || firstopt)) {
16651660
if (headopt && length(jsub)==2L) jsub[["n"]] = 6L # head-tail n=6 when missing #3462

0 commit comments

Comments
 (0)