get_soil_per_env: Obtain soil data for a given environment

View source: R/get_weather_soil_data.R

get_soil_per_envR Documentation

Obtain soil data for a given environment

Description

Function downloading soil data from SoilGrids database

Usage

get_soil_per_env(environment, info_environments, ...)

Arguments

environment

character Name of the environment for which climate data should be extracted.

info_environments

data.frame object with at least the 4 first columns.

  1. year: numeric Year label of the environment

  2. location: character Name of the location

  3. longitude: numeric longitude of the environment

  4. latitude: numeric latitude of the environment

  5. planting.date: (optional) Date YYYY-MM-DD

  6. harvest.date: (optional) Date YYYY-MM-DD

  7. elevation: (optional) numeric

  8. IDenv: character ID of the environment (location x year)

The data.frame should contain as many rows as Year x Location combinations. Example: if only one location evaluated across four years, 4 rows should be present.

Value

a data.frame data.frame with the following columns extracted from SoilGrids

  1. IDenv character

  2. a list of soil features

Author(s)

Cathy C. Westhues cathy.jubin@hotmail.com

References

\insertRef

poggio2021soilgridslearnMET


cjubin/learnMET documentation built on Nov. 4, 2024, 6:23 p.m.