get_refrence_id_simple {EnvExpInd}R Documentation

Match the nearing monitoring site for each individual

Description

Match the nearing monitoring site for each individual

Usage

get_refrence_id_simple(
  individual_data,
  individual_lat,
  individual_lon,
  individual_id,
  site_data,
  site_lat,
  site_lon,
  site_id
)

Arguments

individual_data

data.frame, including three variables (individual_lat, individual_lon and individual_id)

individual_lat

character, varibale name in individual_data, includes the latitude information of each idividual

individual_lon

character, varibale name in individual_data, includes the longtitude information of each idividual

individual_id

character, varibale name in individual_data, includes the unique id for each individual

site_data

data.frame, including three variables (site_lat, site_lon and site_id)

site_lat

character varibale includes the latitude value of the site

site_lon

character varibale includes the longtitude value of the site

site_id

character varibale includes the id for each site

Value

A vector, including the refrence_id for each individual

Author(s)

Bing Zhang, https://github.com/Spatial-R/EnvExpInd

Examples

get_refrence_id_simple(
     individual_data = individual_data,
     individual_lat = "lat",
     individual_lon = "lon",
     individual_id = "id",
     site_data = site_data,
     site_lon = "lon",
     site_lat = "lat",
     site_id = "site")

[Package EnvExpInd version 0.1.0 Index]