1
我需要的東西在R鍵變換數據幀是這樣的:移調R數據幀並串連發生在多個列中的值
id past present future
id1 A A B
id2 B C
id3 A C
id4 B B A
要這樣:
id A B C
id1 past, present future
id2 past future
id3 past present
id4 future past, present
我已經試過玩但是我對R很新,並且沒有能夠接近我需要的東西。我應該使用別的東西嗎?
謝謝!