Skip to contents

All functions

pgoptions
R6 Class to set and get package-wide options for PRIO-GRID.
Source
Source Class
add_source()
Add source to CSV file
bdist1()
Calculate distance to nearest land-contiguous border (bdist1)
bdist2()
Calculate distance to nearest international border (bdist2)
bdist3()
Calculate nearest distance to a country's own borders (bdist3)
build_release()
Build an official PRIO-GRID release
calc_pg()
Calculate PRIO-GRID variables
calc_traveltime()
Generate travel time to nearest major city
check_pgsourcefiles()
Test if MD5 checksums of local files are the same as a tested set of files
create_pg_indices()
Create matrix with index numbering conventions as for PRIO-GRID.
cshapes_cover()
Binary Mask for Grid Cells Intersecting International State System (cShapes 2.0)
cshapes_cover_share()
Calculate Grid Cell Coverage by International State System Boundaries (cShapes 2.0)
cshapes_gwcode()
Assign Gleditsch-Ward Country Codes to PRIO-GRID Cells
download_pg_rawdata()
Download the raw-data for PRIO-GRID
download_priogrid()
Download and initialize official PRIO-GRID release
extract_bib_elements()
Helper function to parse bibliography elements based on a source
gen_bdist1()
Generate distance to nearest land-contiguous border over time (bdist1)
gen_bdist2()
Generate multi-temporal distance to international borders data (bdist2)
gen_bdist3()
Generate distance to a country's own borders (bdist3)
gen_cru_pet()
Generate PRIO-GRID Compatible CRU Potential Evapotranspiration Data
gen_cru_pre()
Generate PRIO-GRID Compatible CRU Precipitation Data
gen_cru_tmp()
Generate PRIO-GRID Compatible CRU Near Surface Temperature Data
gen_cshapes_cover_share()
Generate cshapes_cover_share variable
gen_cshapes_gwcode()
Generate cshapes_gwcode variable
gen_geoepr_reg_excluded()
Generate Multi-Temporal Regionally Excluded Ethnic Groups Coverage
gen_geopko_operations_count()
Generate Multi-Temporal Peacekeeping Operations Count Data
gen_geopko_troops_count()
Generate Multi-Temporal Peacekeeping Troop Deployment Data
gen_ghs_wup_degurba_urban()
Generate GHS-WUP-DEGURBA urban proportion grid
gen_ghsl_population_grid()
Generate GHSL GHS Population Grid
gen_hilda_cropland()
Extract Cropland Coverage from HILDA+ Data
gen_hilda_forest()
Extract Forest Coverage from HILDA+ Data
gen_hilda_grassland()
Extract Unmanaged Grass/Shrubland Coverage from HILDA+ Data
gen_hilda_ocean()
Extract Ocean Coverage from HILDA+ Data
gen_hilda_pasture()
Extract Pasture/Rangeland Coverage from HILDA+ Data
gen_hilda_sparse()
Extract Sparse/No Vegetation Coverage from HILDA+ Data
gen_hilda_urban()
Extract Urban Coverage from HILDA+ Data
gen_hilda_water()
Extract Water Coverage from HILDA+ Data
gen_linight_mean()
Generate Li Nighttime Light
gen_naturalearth_cover()
Land Mask for PRIO-GRID Cells (Natural Earth)
gen_naturalearth_cover_share()
Share of PRIO-GRID Cells Covered by Land (Natural Earth)
gen_ne_disputed_area_share()
Generate Raster for All Disputed Areas
gen_ruggedterrain_elevation_mean()
Generate the average (mean) elevation for PRIO-GRID cells
gen_speibase6_mean()
Generate SPEI-6 with mean-temporal aggregation compatible with PRIO-GRID
gen_traveltime_mean()
Generate the mean travel time to nearest major city
gen_traveltime_min()
Generate the minimum travel time to nearest major city
gen_ucdp_ged()
Generate UCDP GED Battle-Related Deaths Variable
get_bib_element()
Extract bibliography element
get_bibliography()
Get the PRIO-GRID bibliography
get_pgfile()
Get file-path on local system to a data source in PRIO-GRID
ghs_wup_degurba()
Apply urban classification to GHS-WUP-DEGURBA data
hilda_landcover()
Extract Land Cover Proportions from HILDA+ Data for PRIO-GRID Cells
load_pgvariable()
Load a PRIO-GRID variable
ne_disputed_area_share()
Generate Raster for Disputed Areas by Type
pg_date_intervals()
Get a sequence of date intervals
pg_dates()
Get a sequence of dates
pg_rawfiles()
Extract url- and file-info from PRIO-GRID metadata
pgchecksum
PRIO-GRID File Checksums (MD5)
pgcitations()
Print citations for PRIO-GRID variables
pgout_path()
Path to store PRIOGRID results
pgsearch()
Search PRIO-GRID meta-data
pgsources
PRIO-GRID Meta-data survey and source information
pgvariables
PRIO-GRID Variables
prio_blank_grid()
Create a raster with PRIO-GRID ids.
rast_to_df()
Converts raster with variable to data.frame
read_cru_pet()
Read and Process CRU TS Potential Evapotranspiration Data
read_cru_pre()
Read and Process CRU TS Precipitation Data
read_cru_tmp()
Read and Process CRU TS Near Surface Temperature Data
read_cshapes()
Reads the CShapes 2.0 raw data
read_epr()
Reads the EPR Core 2023 data
read_geoepr()
Reads the GeoEPR - Geo-referencing Ethnic Power Relations data
read_geopko()
Reads the Geocoded Peacekeeping Operations (Geo-PKO) data
read_ghs_wup_degurba()
Reads the GHS-WUP-DEGURBA data
read_ghsl_population_grid()
Reads the GHSL GHS Population Grid data
read_hilda()
Reads the HILDA+ data
read_linight()
Reads the Li Nighttime data
read_naturalearth_10m_land()
Reads the Natural Earth 10m Physical Land Data
read_ne_disputed_areas()
Reads the Natural Earth Disputed Areas Dataset
read_pg_static()
Collect static (non-time-varying) PRIO-GRID data
read_pg_timevarying()
Collect time-varying (non-static) PRIO-GRID data
read_ruggedterrain()
Read Global Multi-resolution Terrain Elevation Data (GMTED2010)
read_speibase()
Read and Process Global SPEI database data
read_traveltime()
Read Estimated Travel Time to Major Cities (Year 2000)
read_ucdp_ged()
Reads the UCDP Georeferenced Event Dataset (GED)
robust_transformation()
Robustly transform any raster to PRIO-GRID format
ruggedterrain_variable()
Calculate elevation in PRIO-GRID format with set variable
save_pgvariable()
Save a PRIO-GRID variable
spei.nc()
Compute SPEI from very large arrayed data sets in netCDF format.
speibaseN()
Make SPEIbase data PRIO-GRID compatible
ucdp_ged()
Process UCDP GED Data with Temporal Fatality Distribution
urban_extent()
Extract contiguous urban extent around a location
zip_file()
Unzip a File to a Structured Directory (with Safety Check)