How to convert rpivotTable result in to dataframe. I want to create new datafrmae with the result of rpivotTable,
Is it possible do in R?
Data Set Like
User Order_Bin
a PPL
b CCD
c CCD
d OLP
a OLP
c PPL
b OLP
a PPL
a OLP
b PPL
c CCD
d CCD
d OLP
c OLP
b OLP
b CCD
How to get result of below code as data.frame
library(rpivotTable)
rpivotTable(
inventory,
aggregatorName = "Count",
cols = "Order_Bin",
rows = "User",
rendererName = "Heatmap",
width = "100%",
height = "1000px")
According to the documention of
rpivotTable, there is no export facility.So, you have to aggregate on your own. One possibility is
which returns
For comparison, here is the output of the
pivotTable()call:Please, note the Totals row and column.