'separate variable into factors in reactable
I'm using reactable which I like a lot. I grouped a table by manufacturers which worked very nicely.
I would like to add another insight which I'm a bit stuck on how to do it:
While the data is grouped by the manufacturers, I'm also taking the median service_installation_time, so I know how much time is needed for each manufacturer as a median. Next, I would like to know in addition the service_installation_time per manufacturer and per HV_Board which has the levels OK, NOK, NULL.
Any idea how to do this?
output$table <- renderReactable({
reactable(df
, searchable = TRUE
, showPageSizeOptions = TRUE
, groupBy = "manufacturer"
, HV_Board = colDef(aggregate = "frequency")
, Service_Installation_time = colDef(aggregate = "median", format = colFormat(digits = 2))
)
})
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
