get_exposure_from_geoDS: Associate 'NetCDF' data and individual location

View source: R/get_exposure_from_geoDS.R

get_exposure_from_geoDSR Documentation

Associate 'NetCDF' data and individual location

Description

Merge the exposure data contained in a 'NetCDF' object with the location data of the individuals present on a 'clinical' 'data.frame'

Usage

get_exposure_from_geoDS(
  lat,
  lon,
  exposure,
  exposure_name,
  clinical,
  clinical_lat_var,
  clinical_lon_var,
  clinical_id_var,
  exposures = NULL,
  exposures_id_var = NULL
)

Arguments

lat

'array' Latitude extracted from a 'NetCDF' resource using 'ncvar_getDS'

lon

'array' Longitutde extracted from a 'NetCDF' resource using 'ncvar_getDS'

exposure

'matrix' Exposure extracted from a 'NetCDF' resource using 'ncvar_getDS'

exposure_name

'character' Name to assign to the 'exposure'

clinical

'data.frame' Clinical data data of the individuals, which contain among other variables, the longitude and latitude of the individuals to be associated with the 'NetCDF' data.

clinical_lat_var

'character' Name of the latitude variable on the 'clinical' data

clinical_lon_var

'character' Name of the longitude variable on the 'clinical' data

clinical_id_var

'character' Name of the IDs variable on the 'clinical' data

exposures

(default 'NULL') If provided, existing 'data.frame' with exposure data. The new exposure calculated from the 'NetCDF' data will be added to this table by ID

exposures_id_var

(default 'NULL') Required if 'exposures' is provided. Name of the IDs variable on the 'exposures' data.

Value

'data.frame'


isglobal-brge/dsExposome documentation built on Feb. 20, 2023, 11:19 a.m.