datatable_cn: Create an HTML table widget using the DataTables library with...

Description Usage Arguments

Description

Create an HTML table widget using the DataTables library with Chinese menu

Usage

1
2
3
datatable_cn(data, caption = NULL, rownames = FALSE, colnames,
  extensions = "Buttons", pageLength = pageLength, lengthMenu = c(5,
  10^(1:5)), buttons = c("copy", "csv", "excel", "pdf", "print"))

Arguments

data

a data object (either a matrix or a data frame)

caption

the table caption; a character vector or a tag object generated from htmltools::tags$caption()

rownames

TRUE (show row names) or FALSE (hide row names) or a character vector of row names; by default, the row names are displayed in the first column of the table if exist (not NULL)

colnames

if missing, the column names of the data; otherwise it can be an unnamed character vector of names you want to show in the table header instead of the default data column names; alternatively, you can provide a named numeric or character vector of the form 'newName1' = i1, 'newName2' = i2 or c('newName1' = 'oldName1', 'newName2' = 'oldName2', ...), where newName is the new name you want to show in the table, and i or oldName is the index of the current column name

extensions

a character vector of the names of the DataTables extensions (https://datatables.net/extensions/index)

pageLength

the length of page

lengthMenu

the menu of length

buttons

buttons shows


shizidushu/RFunsInUse documentation built on May 24, 2019, 2:03 a.m.