doing a plyr operation on every row of a data frame in R

前端 未结 1 1806
暖寄归人
暖寄归人 2020-12-04 10:05

I like the plyr syntax. Any time I have to use one of the *apply() commands I end up kicking the dog and going on a 3 day bender. So for the sake of my dog and my liver, wha

相关标签:
1条回答
  • 2020-12-04 10:31

    Just treat it like an array and work on each row:

    adply(df, 1, transform, max = max(x, y))
    
    0 讨论(0)
提交回复
热议问题