epinion_dst: Function to update population matrix from Danmarks Statistik

View source: R/epinion_dst.R

epinion_dstR Documentation

Function to update population matrix from Danmarks Statistik

Description

This function provides the utility of Danmark Statistik's API and cleans up the results for Epinion consultants to use in the daily workflow with survey data and weights. The bulk of the function was written by Isak Dyrløv Klindt. Thus, all praise and errors should be contributed to him.

Usage

epinion_dst(variable)

Arguments

variable

Argument that defines which variable you need to distribution for. Currently, the argument takes values such as "køn", "alder", "køn_alder", "region", "uddannelse2", "person", "husstand" and "partivalg_sidste_fv".

Value

A dataframe with the variable specified and a share of the population


emilteddy/epinionR documentation built on May 21, 2023, 2:54 p.m.