Skip to content

Commit

Permalink
Add DT::dataTable example
Browse files Browse the repository at this point in the history
  • Loading branch information
juba committed Feb 19, 2016
1 parent 4191432 commit 869d7a2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions resources/examples/readthedown/readthedown.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ output:
```{r knitr_init, echo=FALSE, results="asis", cache=FALSE}
library(knitr)
library(rmdformats)
library(DT)
## Global options
options(max.print = "75")
Expand Down Expand Up @@ -70,6 +71,14 @@ Here is a sample table output.
kable(tab)
```

Here is a sample `DT:datatable` output.

```{r iris_dt}
DT::datatable(tab)
```



Here we display a crosstab displayed in several different ways with a "pills"
interface. To do this, just pass your `table()` result to the `pilltabs()`
function.
Expand Down

0 comments on commit 869d7a2

Please sign in to comment.