Efficient functional programming (using mapply) in R for a “naturally” procedural problem

后端 未结 5 1835
独厮守ぢ
独厮守ぢ 2021-01-07 11:43

A common use case in R (at least for me) is identifying observations in a data frame that have some characteristic that depends on the values in some subset of other observa

5条回答
  •  离开以前
    2021-01-07 12:26

    For the specific problem posed !rev(duplicated(rev(raw$WorkerId))) or better, following Charles' advice, !duplicated(raw$WorkerId, fromLast=TRUE)

提交回复
热议问题