View data frames as Shiny pivot tables. This is an alternative to View()
to view data frames as summarized data.
Additional options include sparklines and charts and multiple data metrics.
rspivot(df = .Last.value, valueName = "value", initCols = "", initRows = "", initNest = "", initFilters = list(), initPivotValues = "sum", initMetric = list(metric = "Values", series = ""), launch.browser = FALSE)
df | A data frame flat file to be converted to pivot format. Data should be in "long" format, with a single column of values named |
---|---|
valueName | Name of series in |
initCols | Specify the series to be displayed as columns. If blank, defaults to the right-most series in the data frame. |
initRows | Specify the series to be displayed as rows. If blank, defaults to the 2nd right-most series in the data frame. |
initNest | Specify the series to be displayed as nested rows. If blank, no nested rows are displayed. |
initFilters | Optional list of initial filter selections. Leave a series blank or use "Show All" to select all. Pass series names to |
initPivotValues | Summary values to display in the pivot table. Default is |
initMetric | Optional list of the initial data metrics to display, after data is summarized using |
launch.browser | If |
# NOT RUN { rspivot(GVAIndustry) rspivot(iris, valueName = names(iris)[1:4]) # }