Skip to content

Instantly share code, notes, and snippets.

@akgold
Created April 13, 2020 17:00
Show Gist options
  • Save akgold/db6034200907164c9947655cc4e769e0 to your computer and use it in GitHub Desktop.
Save akgold/db6034200907164c9947655cc4e769e0 to your computer and use it in GitHub Desktop.
An RMD document in HTML that uses DT's built-in filtering.
---
title: "Test DT"
author: "Alex Gold"
date: "4/13/2020"
output: html_document
---
```{r}
library(DT)
```
# Datasets {.tabset .tabset-pills}
## MTcars
```{r}
DT::datatable(mtcars, filter = "top")
```
## Iris
```{r}
DT::datatable(iris, filter = "top")
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment