This project analyzes event data from the Phoenix Data Project
Load the necessary packages.
library(plyr) library(yaml) library(tidyverse)
The phoenix.R
script provides a function that simplifies downloading and loading the dataset. We set the start date to the beginning of the year and load the dataset. The phoenix_load()
function downloads the dataset if necessary.
source('R/phoenix.R') config <- yaml.load_file("config.yml") events <- phoenix_load(config, start_date = "2017-01-01")
Let's see what's in the dataset
str(events)
Show selected columns
events %>% select(Date, SourceActorFull, TargetActorFull, EventCode, LocationName) %>% head()
Last Updated: r format(Sys.time(), "%b %d, %Y %l:%M %p")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.