How to create a pivot table in R with multiple (3+) variables

前端 未结 5 1169
灰色年华
灰色年华 2020-12-06 07:09

I am having problems in create a pivot table with a data frame like this:

c1   c2          c3         c4
E   5.76         201    A la vista
E   47530.71              


        
5条回答
  •  感情败类
    2020-12-06 07:37

    With rpivotTable, you can pivot like in Excel.

    install.packages("rpivotTable")
    library(rpivotTable) 
    data(mtcars)
    rpivotTable(mtcars)
    

提交回复
热议问题