Skip to contents

Convert data to PRIO-GRID

pg_from_netcdf()
Convert NetCDF data to PRIO-GRID
pg_from_points()
Convert point or event data to PRIO-GRID
pg_from_raster()
Convert raster data to PRIO-GRID
pg_from_table()
Transfer geographically indexed table data to PRIO-GRID
pg_from_vector()
Convert vector data to PRIO-GRID

Grid utilities

pg_create_indices()
Create a matrix of PRIO-GRID identifiers
pg_id_from_coords()
Convert coordinates to PRIO-GRID cell IDs
pg_coords_from_id()
Convert PRIO-GRID cell IDs to centre coordinates
pg_geometry()
Create PRIO-GRID geometries
pg_neighbors()
Find first-order PRIO-GRID neighbors
pg_neighbor_table()
Build a PRIO-GRID neighbor table
pg_weights()
Create spatial weights
pg_spatial_lag()
Calculate a spatial lag
pg_distance()
Calculate distances between PRIO-GRID cells
pg_buffer_summary()
Summarize values around PRIO-GRID cells
pg_nearest()
Find nearest PRIO-GRID cells

Data foundations

pg_validate_data() print(<pg_validation>)
Validate PRIO-GRID data
pg_complete_panel()
Complete a PRIO-GRID panel
pg_join()
Safely join PRIO-GRID data

Visualization and workflow

pg_plot()
Plot PRIO-GRID data
pg_paths()
Construct standard project data paths
pg_theme()
A theme for plotting PRIO-GRID data

Results and output

pg_write_result()
Write a PRIO-GRID conversion result
print(<pg_result>)
Print a PRIO-GRID conversion result
as.data.frame(<pg_result>)
Convert a PRIO-GRID result to a data frame

Data

priogrid
PRIO-GRID information