get_data_to_overlay: Get data to overlay

Description Usage Arguments Value Examples

Description

this function read data in intervals, aggregate it and computes measures of normalization of the data as RCA. Also subset and filter per a list or value of producers

Usage

1
2
3
get_data_to_overlay(data_interval, n = 10, init = NaN, end = NaN,
  by = 1, cum = FALSE, min_prod = 1, year = "year", producer, category,
  value, agg_fun = mean, list_prod = NaN)

Arguments

n

Number of samples to use. -1 for the complete number of producers.

init

an integer pointing the initial year

end

an integer pointing the final year

by

an integer describing the time window

cum

if FALSE it uses mobile time windows, otherwise it uses allways the same init year.

min_prod

minimum production to filter producers

agg_fun

function to aggregate, usually sum,

list_prod

default NaN. A finite list of producers

what_agg

name of column to aggregate 'wgh_jfrac',

Value

a Data Frame to overlay.

Examples

1

mguevara/rescinnet documentation built on July 7, 2019, 12:45 a.m.