join_gcam: Join GCAM data with spatial data.

Description Usage Arguments

View source: R/Map_Functions.R

Description

Joins GCAM data from rgam query and inner joins it to spatial data provided by the user. Note: due to conducting an inner join, only the keys that are present in both datasets will be represented.

Usage

1
join_gcam(mapdata, mapdata_key, gcam_df, gcam_key)

Arguments

mapdata

The sf object containing the spatial data and a tuple identifier that can be referenced in the gcam_df data frame.

mapdata_key

Name of the field having a tuple identifier that can be referenced in the gcam_df data frame.

gcam_df

The GCAM data frame provided from the user. This is usually generated from an rgcam query.

gcam_key

Name of field having a tuple identifier that can be referenced in the mapdata data frame.


JGCRI/gcammaptools documentation built on May 4, 2018, 8 a.m.