get_ghm: Extract Global Human Modification data

View source: R/get_ghm.R

get_ghmR Documentation

Extract Global Human Modification data

Description

A function that extract Global Human Modification data of the year 2016

Usage

get_ghm(region, fun = "count", scale = 1000)

Arguments

region

region and object sf.

fun

function for extract statistic zonal (count, kurtosis, max, mean, median, min, mod, percentile, std, sum, variance, first).

scale

A nominal scale in meters of the projection to work in.

Value

a tibble object with the new variable in km².

Examples

## Not run: 

library(tidyverse)
library(rgee)
library(innovar)
library(sf)
ee_Initialize()

# 1. Reading a sf object
data("Peru")
region <- Peru
region_ee <- pol_as_ee(region, id = 'distr' ,simplify = 1000)

# 2. Extracting climate information
data <- region_ee %>%
get_ghm(
 fun = "max"
)

## End(Not run)

healthinnovation/lis documentation built on June 19, 2024, 6:06 a.m.