Skip to content

Commit fe4f302

Browse files
committed
Test
1 parent bfa4274 commit fe4f302

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

Project_Data_Science.Rmd

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,19 @@ output: html_document
99
knitr::opts_chunk$set(echo = TRUE)
1010
```
1111

12-
12+
### Exploratory Analysis
1313
```{r}
1414
library(readxl)
1515
library(readr)
1616
library(tidyverse)
17-
dataset = read_xlsx("../globalterrorismdb_0617dist.xlsx")
17+
library(styler)
18+
dataset = read_xlsx("./globalterrorismdb_0617dist.xlsx")
1819
19-
dataset = dataset %>%
20+
terrorism <- dataset %>%
2021
select("Year" = iyear, "Month" = imonth, "Day" = iday, "Country" = country_txt, "Region" = region_txt, "AttackType" = attacktype1_txt, "Target" = target1, "Killed" = nkill, "Wounded" = nwound, "Summary" = summary, "Group" = gname, "Target_Type" = targtype1_txt, "Weapon_type" = weapsubtype1_txt, "Motive" = motive) %>%
21-
mutate(Casualties = Killed + Wounded)
22-
head(dataset)
22+
mutate(Casualties = Killed + Wounded) %>%
23+
glimpse()
2324
24-
colSums(is.na(dataset))
25-
```
25+
NA.Count = colSums(is.na(terrorism))
26+
27+
```

0 commit comments

Comments
 (0)