rpivotTable sort by subtotal desc

i use rpivottable
i would order by subtotal desc my selection
i have 2 field row and 1 field col, i view result but not order by subtotal for first field of row.
how example
rpivotTable(rest, cols="Year", rows=c("brand","subbrand"), vals = "value", aggregatorName = "Sum",
subtotals=TRUE, width="100%", height="400px")

i can use only one value i search a function with more set field value

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.