Skip to content

Commit

Permalink
added data file, created datatable in index files
Browse files Browse the repository at this point in the history
  • Loading branch information
mbreshock committed Apr 7, 2022
1 parent b5ab5ef commit fb5c0e9
Show file tree
Hide file tree
Showing 3 changed files with 254 additions and 0 deletions.
27 changes: 27 additions & 0 deletions index.Rmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
title: ""
subtitle: " "
output: html_document
---

```{r, echo=FALSE, include=FALSE}
library(magrittr)
library(tidyverse)
load(here::here("shooting_data_wrangled_pre_map.rda"))
shooting_data <-shooting_data_wrangled_pre_map
```

```{r, echo=FALSE, include=TRUE}
DT_table <-
shooting_data %>%
dplyr::select(Date,
School,
City,
State,
`Killed (includes shooter)`,
`Narrative (Detailed Summary/ Background)`) %>%
rename("Deaths" = `Killed (includes shooter)`) %>%
rename("Narrative" = `Narrative (Detailed Summary/ Background)`)
DT::datatable(DT_table)
```
227 changes: 227 additions & 0 deletions index.html

Large diffs are not rendered by default.

Binary file added shooting_data_wrangled_pre_map.rda
Binary file not shown.

0 comments on commit fb5c0e9

Please sign in to comment.