case_when using variable name to change data value

前端 未结 0 721
悲哀的现实
悲哀的现实 2021-01-06 20:30

I have the following dataframe:

df <- data.frame(var1_lag0 = c(1,2,3,4,5,6)
                 , var1_lag1 = c(0,1,2,3,4,5)
                 , var2_lag0 = c(         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题