【发布时间】:2021-03-01 23:15:33
【问题描述】:
如果我有这样的事情:
id date type location
1 1/2/2021 student Georgia
1 Maine
1 New York
2 2/20/2021 teacher Florida
2 Louisiana
3 2/15/2021 student New York
3 Maine
3 California
3 Florida
我想根据“id”的值复制“日期”和“类型”列中的值:
id date type location
1 1/2/2021 student Georgia
1 1/2/2001 student Maine
1 1/2/2001 student New York
2 2/20/2021 teacher Florida
2 2/20/2021 teacher Louisiana
3 2/15/2021 student New York
3 2/15/2021 student Maine
3 2/15/2021 student California
3 2/15/2021 student Florida
我知道这可能已经问过了,但我不知道如何问这个问题。感谢您的帮助!
【问题讨论】:
标签: r