Hi good day,have been trying to get only a datatable to show my information without filters, search boxes or such, but when I use options = list(dom = 't') to achieve it I still get a "FALSE" word on the top row where the titles for each column should be.
my code:
output$tableDT7= DT::renderDataTable({
datatable(VarPrecio(),
rownames = T,
colnames = F,
options = list(dom = 't')
)%>%
formatPercentage(1:5, 2)
})
thanks a lot
If you want to remove colnames, use NULL
instead of F
library(DT)
library(tidyverse)
datatable(iris %>%
group_by(Species) %>%
summarise_all(mean) %>%
column_to_rownames("Species"),
rownames = T,
colnames = NULL,
options = list(dom = 't'))%>%
formatPercentage(1:4, 2)
Created on 2019-05-10 by the reprex package (v0.2.1)
1 Like
thanks a lot!! worked perfectly
system
Closed
May 17, 2019, 1:50pm
4
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed. If you have a query related to it or one of the replies, start a new topic and refer back with a link.