dt

Problems writing code for an R DT summarizing result across multiple studies with collapsable child rows

纵饮孤独 提交于 2020-05-11 12:11:09
问题 I'm trying to make an interactive table summarizing the top result of an outcome tested in multiple studies, and I would also like the user to access more detailed results via child rows. Only the "top" model with the smallest p-value is shown in the main table. Right now I have the relevant results into two data frames: 1. top result only, and 2. detailed results. I am merging these and nesting based on the top results which I want to display. library(DT) library(tidyr) library(dplyr)

Problems writing code for an R DT summarizing result across multiple studies with collapsable child rows

别来无恙 提交于 2020-05-11 12:11:07
问题 I'm trying to make an interactive table summarizing the top result of an outcome tested in multiple studies, and I would also like the user to access more detailed results via child rows. Only the "top" model with the smallest p-value is shown in the main table. Right now I have the relevant results into two data frames: 1. top result only, and 2. detailed results. I am merging these and nesting based on the top results which I want to display. library(DT) library(tidyr) library(dplyr)

Problems writing code for an R DT summarizing result across multiple studies with collapsable child rows

耗尽温柔 提交于 2020-05-11 12:10:47
问题 I'm trying to make an interactive table summarizing the top result of an outcome tested in multiple studies, and I would also like the user to access more detailed results via child rows. Only the "top" model with the smallest p-value is shown in the main table. Right now I have the relevant results into two data frames: 1. top result only, and 2. detailed results. I am merging these and nesting based on the top results which I want to display. library(DT) library(tidyr) library(dplyr)

Batch searching regex in Shiny DT datatables with spaces (not pipes)

限于喜欢 提交于 2020-05-09 07:26:46
问题 Following on from this post can anyone please tell me if it's possible to implement a way to search an interactive Shiny DT datatable where keywords are separated by spaces and not pipes? Users of my apps will have lists of genes separated by spaces and adding pipes will defeat the point of making the app user friendly. Example code: ## example taken from https://rstudio.github.io/DT/007-search.html library(DT) mtcars2 = mtcars[, c(1:5, 9)] mtcars2$am = factor(mtcars$am, c(0, 1), c('automatic

Batch searching regex in Shiny DT datatables with spaces (not pipes)

╄→гoц情女王★ 提交于 2020-05-09 07:26:11
问题 Following on from this post can anyone please tell me if it's possible to implement a way to search an interactive Shiny DT datatable where keywords are separated by spaces and not pipes? Users of my apps will have lists of genes separated by spaces and adding pipes will defeat the point of making the app user friendly. Example code: ## example taken from https://rstudio.github.io/DT/007-search.html library(DT) mtcars2 = mtcars[, c(1:5, 9)] mtcars2$am = factor(mtcars$am, c(0, 1), c('automatic

Trouble with reactivity when binding/unbinding DataTable

血红的双手。 提交于 2020-04-13 06:50:33
问题 I have a shiny app with two tabs, each with a DataTable that have numericInputs so I have to bind and unbind the DataTable for the numericInputs to work. Unfortunately this has created reactivity problems that I am hoping someone can help with. In the example below, if you change the input on the sidebar that determines the data in the tables, only the table in the open tab will actually update/react. library(shiny) library(DT) shinyApp( ui = fluidPage( sidebarPanel( # choose dataset

Button extension to download all data or only visible data

会有一股神秘感。 提交于 2020-04-08 10:19:48
问题 With the button extension to DT package, is there a way to specify that the buttons download either (1) all the data feeding the datatable, or (2) only the data on the visible page. Below is the example from the documentation. datatable( iris, extensions = 'Buttons', options = list( dom = 'Bfrtip', buttons = c('copy', 'csv', 'excel', 'pdf', 'print') ) ) 回答1: See this answer: Buttons: download button with scroller downloads only few rows Whether the buttons export all data or only visible data

Button extension to download all data or only visible data

霸气de小男生 提交于 2020-04-08 10:14:21
问题 With the button extension to DT package, is there a way to specify that the buttons download either (1) all the data feeding the datatable, or (2) only the data on the visible page. Below is the example from the documentation. datatable( iris, extensions = 'Buttons', options = list( dom = 'Bfrtip', buttons = c('copy', 'csv', 'excel', 'pdf', 'print') ) ) 回答1: See this answer: Buttons: download button with scroller downloads only few rows Whether the buttons export all data or only visible data

How to extend DT datatable cells across multiple columns inside table and in header

无人久伴 提交于 2020-03-26 04:36:41
问题 I'm having extreme difficulty trying to make a character string spread out across multiple columns in a DT:datatable header & in the table itself. I found these solutions: Extend a table cell across multiple columns, merge columns in DT:datatable but can't seem to get them to work for my own purposes. This is what I am getting: This is what I want: Sample Data: df<-structure(list(`AQS ID` = c(NA, "AQS ID", "340071001", "340170006", "340010006", "340070002", "340273001", "340150002",

RowGroup function not working when there are multiple datatable to be displayed

心不动则不痛 提交于 2020-03-25 18:03:41
问题 I have a requirement to show 2 datatables in 2 different tabs in a shiny application. One is a simple datatable whereas the other uses the rowgroup extension of DT package. When I'm using tabs to display both the datatables, the rowgroup function doesnt seem to work. library(shiny) library(DT) library(shinyjs) ui <- fluidPage( dashboardBody( fluidRow( tabBox(width = "100%", tabPanel("Table 1", fluidRow( column(12, withSpinner(DTOutput("my_table2",height="600px"))) ) ), tabPanel("Table 2",