Create loop with dynamic column names and repeating values based on defined i

后端 未结 0 1026
梦谈多话
梦谈多话 2021-01-22 09:31

I have the following dataframe:

id <- c("A", "B", "C")
col1 <- c(1, 3, 5)
col2 <- c(6, 12, 9)
col3 <- c(2, 4, 30)
df <         


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