get_climate: Evaluates environment from 'worldclim'

Description Usage Arguments Value Author(s) See Also Examples

View source: R/simulate_pheno.R

Description

This function downloads the 'wordlclim' bioclimatic database, extract the data for the specified geographic coordinates, and summarizes them with their first principal component.

Usage

1
get_climate(coord)

Arguments

coord

a matrix of geographic coordinates written as (longitude, latitude).

Value

the first principal component of 19 bioclimatic variables from 'worldclim'.

Author(s)

Olivier François

See Also

simu_pheno

Examples

1
2
3
4
5
6
library(naturalgwas)

## Load example
data(A.thaliana)
env <- get_climate(A.thaliana$coord)
summary(env)

bcm-uga/NaturalGWAS documentation built on Dec. 18, 2019, 12:36 a.m.