View source: R/table_creation_FUN.R
get_data | R Documentation |
get_data soll Ausgangs-Datensatz im long Format auf bestimmte Variablen beschraenken (variable, year, weight, diffvars) und ausschliesslich valide Werte enthalten.
get_data( datasetnum, datasetfac, variable, year, weight, diffcount, diffvars, vallabel )
datasetnum |
data.frame mit numeric Variablen (z.B. plattform_data) |
datasetfac |
data.frame mit factor Variablen (z.B. plattform_data) |
variable |
Name Analysevariable als string (z.B. "pglabnet" ) |
year |
Name Erhebungsjahrvariable als string (z.B. "syear") |
weight |
Name Gewichtsvariable als string (z.B. "phrf") |
diffcount |
Anzahl gewuenschter Differenzierungen (z.B. 2) (range 0-3) |
diffvars |
Vector mit Differenzierungsvariablen (z.B. c("alter_gr", "sex", "Bildungsniveau")) (maximal 3 Variablen) |
vallabel |
Valuelabel sollen verwendet werden (z.B: vallabel = TRUE) (TRUE/FALSE) |
variable.values.valid ist ein Datensatz mit validen Werten der Variablen (variable, year, weight, diffvars)
Stefan Zimmermann, szimmermann@diw.de
get_data(datasetnum = data.file.num, datasetfac = data.file.fac, variable = "pglabnet", year = "syear", weight = "phrf", diffcount = diffcount, diffvars = c("alter_gr", "sex", "Bildungsniveau"), vallabel = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.