flexpivot icon indicating copy to clipboard operation
flexpivot copied to clipboard

Pivot based of a field

Open senthilmek opened this issue 5 years ago • 0 comments

Is it possible to pivot based of a field here .In case of mtcars how would I create a pivot between cyl and gear and the value being mpg.

mtcars %>%
  pivot_table("cyl", "gear") %>%
  pivot_format(
    # background = "#D8DEE9",
    # color = "#3B4252",
    # labels = pivot_labels(
    #   n = "mpg"
    )
  )

senthilmek avatar Jul 30 '20 17:07 senthilmek