首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >DT在DT中显示更多行

DT在DT中显示更多行
EN

Stack Overflow用户
提问于 2017-06-05 20:05:51
回答 0查看 3.7K关注 0票数 4

当我运行下面的代码时,我只得到了1到2行数据。如何增加显示的行数?谢谢!

代码语言:javascript
运行
复制
    ---
    title: " File Analysis"
    output:
    html_document: default
    pdf_document: default
    word_document: default
    ---

    ```{r setup, include=FALSE}
    knitr::opts_chunk$set(echo = FALSE,comment = NA, echo=FALSE,message= FALSE, warning = FALSE)
    ```
    **As can be seen in Table 1 below**
    ```{r echo=FALSE, message=FALSE,warning = FALSE}
    cwater<-matrix(rbinom(10*100, 1, .5), ncol=10)

    library("knitr","xtable", quietly = TRUE)
    library(DT, quietly = TRUE)
    datatable(cwater, caption = 'Table 1: This is a searchable table of the     water content.',
    class = 'cell-border stripe', filter = 'top',extensions   = 'Buttons',fillContainer=TRUE, options = list(
    pageLength = 10, autoWidth = TRUE,dom = 'Bfrtip',buttons = c  ('copy', 'print'), scrollX = TRUE, 
 selection="multiple"
    ))
    ```
EN

回答

页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/44368572

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档