Description Usage Arguments Value Examples
This function should be passed to callModule. See example.
1 2 3 | pivot_tree_module(input, output, session, ns_id, df, pivot_vars,
record_limit = 1e+06, join_table = NULL, join_by = NA,
show_filter_text = T)
|
input |
A standard argument used by shiny when creating the module. |
output |
A standard argument used by shiny when creating the module. |
session |
A standard argument used by shiny when creating the module. |
ns_id |
The module namespace id as a string. Must match a namespace id of the corresponding UI module element. |
df |
A local dataframe/tibble or tbl_dbi database connection object. |
pivot_vars |
A table constructed using the get_pivot_vars function. |
record_limit |
The maximum number of rows to bring into R to display. This is a saftely measure. You probably don't want to bring 100 million rows of data into R from a database. Defaults to 1 million. |
join_table |
A reactive expression returned from another pivot module. Used to implement linked pivot tables. |
join_by |
The primary key variable to perfrorm a filtering join as a string. Must be in both pivot tables to be linked. Only needed if using linked pivot tables. |
The server function needed for a pivot table module.
1 2 3 4 | # note that the namespace id must
server <- function(input, output, session){
callModule(pivot_module, id = "id1", ns_id = "id1", df = df1, pivot_vars = pivot_vars1, record_limit = 20)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.