R 如何对表中的列重新排序
如何在R中对表的列重新排序。类是“table”R 如何对表中的列重新排序,r,R,如何在R中对表的列重新排序。类是“table” 一个选项是将月.name与数据集的列名进行匹配,并将其作为索引对列进行重新排序 df1 <- booking_com_graph[,match(month.name, colnames(booking_com_graph), nomatch=0)] df1一个选项是将month.name与数据集的列名进行匹配,并将其作为索引对列进行重新排序 df1 <- booking_com_graph[,match(month.name, col
一个选项是将
月.name
与数据集的列名进行匹配,并将其作为索引对列进行重新排序
df1 <- booking_com_graph[,match(month.name, colnames(booking_com_graph), nomatch=0)]
df1一个选项是将month.name
与数据集的列名进行匹配,并将其作为索引对列进行重新排序
df1 <- booking_com_graph[,match(month.name, colnames(booking_com_graph), nomatch=0)]
df1