get_occurrences: get_occurrences

Description Usage Arguments Value Examples

Description

get_occurences provides access to the Fogo Cruzado's API. The function returns a data frame with the individual occurrences of shootings and the filters applied by the researcher.

Usage

1
get_occurrences(source=NULL, agent=NULL, city_name=NULL, state_name=NULL, add_token)

Arguments

source:

numeric the source of the occurence. See data_source for the options. Default values gets all the sources

agent:

numeric to filter if a police agent participates in the shooting. See data_agent for the options. Default value gets all the options

state_name:

character to filter the results by State of the occurences. See data_state_name for the options.

city_name:

chracter to filter the results by the city of the occurences. See data_city_name for the options.

state_id:

numeric to filter if a police agent participates in the shooting.

add_token:

add the user's token to access the API.

Value

it returns a dataframe of occurrences of shootings. See the API documentation for a comprehensive codebook of the output

Examples

1

TiagoVentura/get_fogocruzado documentation built on June 27, 2019, 12:19 a.m.