calcular_est: Create standard columns and types from data in BITS...

Description Usage Arguments Value Examples

Description

Data in different tiles has diferent columns, this function standardizes the information and variable types.

Usage

1
calcular_est(estados, edo_val, bits_df, marco_muestral)

Arguments

estados

string ot vector of strings with the name of the state as defined in sampling frame

edo_val

data.frame with expert classification.

bits_df

data.frame with BITS classifications.

Value

A list with estimates for percentage of area correcrly classified and percentage of polygons correctly classified.

Examples

1
2
3
4
5
6
7
sampling_frame <- data.frame(id = 1:100,
  str = sample(1:5, 100, replace = TRUE),
  val = rnorm(100))
allo <- sampling_frame %>%
    group_by(str) %>%
    summarise(n = 0.4 * n())
select_sample(allo, sampling_frame, n, str)

tereom/mapacurracy documentation built on May 26, 2019, 5:31 a.m.