Questions tagged [dt]

DT is an R package that provides an interface to the JavaScript library DataTables. Use the data.table tag for questions related to the data.frame extension package data.table.

The R package DT provides an R interface to the JavaScript library DataTables. R data objects (matrices or data frames) can be displayed as tables on HTML pages, and DataTables provides filtering, pagination, sorting, and many other features in the tables. See the package website http://rstudio.github.io/DT for more information.

1888 questions
0
votes
1 answer

Shiny DT, custom button to select filtered rows

I would like to include custom buttons as extensions to the data.table in the minimal reproducible example below. This example is essentially taken from this question. As I have several data.tables in my application, I tried to generalize the node…
Thomas
  • 72
  • 6
0
votes
1 answer

R Shiny: Get ordering from data table and apply to plot

With the following Shiny App I would like to update the plot according to the ordering in the data table, i.e. if I sort the data by x in the data table, it should automatically apply that sorting to the plot. How would I go about it? Does data…
sedsiv
  • 531
  • 1
  • 3
  • 15
0
votes
2 answers

How to implement a R shiny table with adjustable columns?

I am looking for a way to have table columns that can handle data/text of different unknown size. The desired behavior of the table is basically like Excel cells/colums, i.e. No wrapping by default For long texts only show as much as fits within…
Felix
  • 15
  • 3
0
votes
1 answer

Utilizing background colors in R Shiny datatable to color cells

Hi I'm working with an R Shiny dashboard of mine using NBA data to showcase the top 15 highest scorers from the previous day's games. I have a simple table setup showing the points scored and the shooting efficiency, but it's pretty bland and I…
jyablonski
  • 711
  • 1
  • 7
  • 17
0
votes
1 answer

Is there a way to use picker/selectInput in conjunction with an editable, reactive DT in shiny?

I have struggled with the following issue and have found no suitable solution on SO. Here is what I require from my DataTable I would like to edit my DataTable (achieved) Filter the data in DataTable with my edits intact. Currently, my edits…
ttam10
  • 35
  • 5
0
votes
1 answer

Passing reactive data table server to ui in modular shiny app

I want to present a data table with one column from a data frame by default and then have a user populate other columns from the dataframe using the drag and drop package sortable. I have a working example here when running via one file shiny app. …
Ahk86
  • 177
  • 2
  • 11
0
votes
1 answer

Automatically Updating a DT works when using Shiny, but not in shinydashboard with multiple tabs

I designed a Shiny app with a DT that can detect if the input fields changes and automatically update the values. Below is a screen shot and my code. This app works as I expected. When running this app, values are updated accordingly in DT based on…
www
  • 38,575
  • 12
  • 48
  • 84
0
votes
1 answer

Shiny: Reactive Value to DT:datatable

I'm creating a shiny app where my users can recode variables (kind of) manually. Currently, there are two major issues: DT::datatable does not like when I pass the intended output to get rendered after the user has pressed 'Execute Recode'. A…
0
votes
1 answer

Why the Conditional Color Styling inside the Reactable is not working?

Data df <- tibble( x = rep(paste0( "del", 1:10 ), 100), y = rep(paste0( "topic", 1:5 ), 200), z = paste0("question", 1:1000), w = 1:1000 ) Code reactable( df, groupBy = c("x", "y"), columns = list( w = colDef( aggregate =…
0
votes
1 answer

Embed column with mixed numericInput and selectInput in DT: reactive table

The present question is related to my previous question, regarding embedding a column with mixed numericInput and selectInput in DT with R. The solution provided there works fine, but there are problems when I use a reactive table. In more detail, I…
tzema
  • 451
  • 3
  • 11
0
votes
1 answer

How to observeEvent for selectInput present in each row in a column

I would like to obtain the row number and choice selected each time an input is changed in one of the selectInput. The following is a test code. So in short if I change the species in row three, using observeEvent I would like the output to tell me…
Sahib
  • 160
  • 8
0
votes
1 answer

How can I make the main panel in shiny occupy the entire width of the screen

I am making an app in shiny and I want the main panel to occupy 100% of the screen, how can I achieve this? In this occasion I am showing a table but I would also like to add a graph so that it can be seen large. Below I show the code I am…
0
votes
1 answer

How to use sparklines in DTedit

I have a shiny application using DT as follows (code snippet): output$table <- DT::renderDataTable({ DT::datatable( data = table, escape = FALSE, rownames = FALSE, selection = "single", options = list(...), …
Paul van Oppen
  • 1,443
  • 1
  • 9
  • 18
0
votes
1 answer

Embed column with mixed numericInput and selectInput in DT

I would like to add a column to a DT that accepts either selectInput or numericInput, depending on the variable. For example, given the following DF: df1 <- tibble( var1 = sample(letters[1:3],10,replace = T), var2 = runif(10, 0, 2), …
tzema
  • 451
  • 3
  • 11
0
votes
1 answer

Trash Icon not showing in action button in DT data table in every row

I have added an action button to every row in the data table, however, the icon does not get displayed inside the table. Only the button. library(shiny) library(tidyverse) library(DT) # Define UI for application that draws a histogram ui <-…
Pascal Schmidt
  • 223
  • 2
  • 12