Create new rows and put a flag to differentiate between existing row

前端 未结 0 1697
忘掉有多难
忘掉有多难 2021-01-20 05:09

I have a dataset like this:

df_have <- data.frame(id = rep("a",3), time = c(1,3,5), flag = c(0,1,1))

The data has one row per ti

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