Introduction

This project analyzes event data from the Phoenix Data Project

Getting Started

Load the necessary packages.

library(plyr)
library(yaml)
library(tidyverse)

Loading Dataset

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")



altaf-ali/phoenix_tracker documentation built on May 11, 2019, 11:29 p.m.