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

Choose a datatable row either by clicking, actionButton() or shiny widget

I have the shiny app below in which the user is able to choose a row to display its index with 3 ways. Click on the row and display its index Click on a row then press Next and display the index of the next row. Select the rowname of a row,press…
firmo23
  • 7,490
  • 2
  • 38
  • 114
0
votes
1 answer

Select specific row of a datatable with a shiny widget

I have the shiny app below in which the user clicks on a row and gets its index next to it. Is it possible to select the selected row with a pickerInput() which includes all the row names except of the selected one and when activated with a choice…
firmo23
  • 7,490
  • 2
  • 38
  • 114
0
votes
1 answer

Move to the next row of the selected one in a DT::datatable with the use of an actionButton()

I have the shiny app below in which I click on datatable row and display its index next to it. Is it possible to press the Next button and display the index of the next row? The table's next row will be highlighted accordingly everytime as…
firmo23
  • 7,490
  • 2
  • 38
  • 114
0
votes
1 answer

Add a new row to a dataframe by clicking on a datatable row and actionbutton

I have the shiny app and the dataframes below. When I click on a row I get a text which displays the similarity of this attribute_name with a . If I click Next I get the similarity of the same attribute_name with the next candidate_2. I want to be…
firmo23
  • 7,490
  • 2
  • 38
  • 114
0
votes
1 answer

R Shiny: How to get the user input from the search box in a DT datatable?

I have developed a dashboard using the shiny and shinydashboard packages in R. The dashboard has a datatable produced with the DT package. At the top of the table, there is a search box that allows users to filter the rows of the table by typing in…
Miguel
  • 416
  • 3
  • 16
0
votes
2 answers

R Shiny | Chaining input choices to group a dataframe

I'm writing a shiny app that will help my colleagues to inspect csv files a bit closer. The first tab allows for import, and the second for grouping of data. For ease of coding, if no csv is uploaded, it uses the mtcars data set. It takes a dataset,…
0
votes
1 answer

Use actionbutton to move to the next row of dataframe in a shiny app

I have the shiny app below in which when the user clicks on a row of the datatable a subset happens in another dataframe df and a text is displayed. I want when I press the Next actionbutton() the text to display the data of the next row of the…
firmo23
  • 7,490
  • 2
  • 38
  • 114
0
votes
1 answer

Subset a dataframe based on certain column of certain row selection of a datatable

I have the shiny app below in which when I click on a row of the 1st table I should get the correspondent value of species column. Then with this value I should subset the second dataframe df based on its species…
firmo23
  • 7,490
  • 2
  • 38
  • 114
0
votes
1 answer

Set column width while using scrollX in R

I'm trying to change the width of some columns in a DT::datatable, unfortunately using the columnDefs option only appears to work when there are a small number of columns in the data. When I add all the columns to my data the column widths no longer…
Greggary
  • 25
  • 4
0
votes
1 answer

Datatable displays empy selectInput while values are selected by default

I have the shiny app below in which I pass the values of a list with characters inside a selectImput() but while all those values seem to be selected (and they should be) by checking their count in the third column the selectize inputs seem to be…
firmo23
  • 7,490
  • 2
  • 38
  • 114
0
votes
2 answers

Display multiple strings in a cell of a datatable that can be removed by clicking on them

I have the shiny app below in which I convert the d dataframe to a dataframe in which the unique items will be summarized based on the name and a new column will be added with their count. Then I use DT package to display this dataframe. I wonder if…
firmo23
  • 7,490
  • 2
  • 38
  • 114
0
votes
1 answer

R Shiny DT output - background rows coloured and displayed all results clash

In my renderDataTable, I am trying to get two things at the same time: coloured rows based on one column values (here - column "a") get all rows as default The coloured rows code, depending on value of a: library(shiny); library(DT) ui <-…
Greg3er
  • 27
  • 6
0
votes
1 answer

Datatable in R Shiny: Read out marked cell from datatable with the KeyTable Extension with the help of JavaScript

I have another JavaScript question. I use a DataTable with the keyTable extension. This extension marks a single cell and you can navigate through the table with the arrow keys. I want to read out, what cell is selected anytime. I think the easiest…
Chefkoch
  • 27
  • 5
0
votes
0 answers

I can't get get the DT package to work correctly on Rshiny

I'm currently working on an Rshiny webapp to use for some simple classification. Currently, I've been working on creating a table that contains the CCR and MCR of both the CART and LDA methods on the data. My aim is then to highlight the column of…
Rhys Mc
  • 25
  • 6
0
votes
1 answer

R datatable's editable functionality incorporated with rowtotal and dynamic column calculation

I am trying to produce a user interactive table like Target table The yellow columns represent editable columns, white ones can't be edited, and they work in following fashion User updates column B and allocates 100% of distribution among the three…
LBZR
  • 161
  • 12