How to hide a column using the DT package - columnDefs parameter doesn't work

后端 未结 1 1581
渐次进展
渐次进展 2021-01-11 12:30

I would like to hide a column (col4 in example below) in a dataframe using the DT package.

I\'ve incorporated the code snippet found here, to no avail - col4 still

相关标签:
1条回答
  • 2021-01-11 12:48

    The targets should be numeric values of the column number

    datatable(test, options=list(columnDefs = list(list(visible=FALSE, targets=c(4))))) %>%
    
    0 讨论(0)
提交回复
热议问题