简体   繁体   中英

How can I show all the entries with datatable in R? (DT package)

I have just found that DT package has an extension with gives you the chance to get the tables in CSV, PDF, etc. The first time, the entries didn't appear, but I saw that if I write dom = 'Blfrtip' they appear.

However, is there a way to have the option "show ALL the entries" of the table?

Now, the maximum entries are 100.

图片

The code:

datatable(
  iris, extensions = 'Buttons', options = list(
    dom = 'Blfrtip',
    buttons = c('copy', 'csv', 'excel', 'pdf', 'print')
  )
)

Thanks in advance,

Regards

Trying some things I found the solution:

datatable(
  iris, extensions = 'Buttons', options = list(
    dom = 'Blfrtip',
    buttons = c('copy', 'csv', 'excel', 'pdf'),
    lengthMenu = list(c(10,30, 50, -1), 
                      c('10', '30', '50', 'All')),
    paging = T)
)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM