homogeneizar_bits: 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

Arguments

datos

data.frame data.frame with data from BITS' shapefiles.

Value

A data.frame with columns edo, oid, id, tile, predicted, interpreta and area_r.

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.