initial_region_prediction_pollyvote: Calculates prediction for each party on each day in each...

Description Usage Arguments Value

View source: R/initial_pollyvote_functions.R

Description

Calculates prediction for each party on each day in each region from the data in the pollyvote container.

Usage

1
2
initial_region_prediction_pollyvote(pv, time_int = NULL, agg_fun = "mean",
  na_handle = "last", region = NULL)

Arguments

pv

[pollyvote]
the pollyvote object of which to get the prediction data from.

agg_fun

[character(1)]
the name of the aggregation function to use, currently 'mean' and 'median' are supported

na_handle

[character(1)]
specifies how NA values are handled in the data.

region

[character(1)]
The region in which predictions are made. If the region is not existing in the pollyvote container, error is thrown. If [NULL], then the predictions are calculated in each region.

time_int[date]

the time interval for the prediction.

Value

dataframe of predictions for a party on each day in each region.


pollyvote/pollyvoter documentation built on April 4, 2018, 8:18 p.m.