Description Usage Arguments Author(s)
This function is used in survey based research to create size groups based on a quantitative variable like the number of employees. Users can specify multiple thresholds that may vary over groups.
1 2 3 | setSizeClass(df, thresholdList, sectorColumn = "all",
resultColumn = "sClass", size = "BESCHAEFTIGTE",
minClassLabel = "S")
|
df |
data.frame that contains the basic dataset |
thresholdList |
list of thresholds, list elements can be vectors if different groups have different thresholds |
sectorColumn |
character string indicating the column that specifies the groups at across which thresholds could be different. Default is 'all' meaning all groups have the same thresholds. |
resultColumn |
character string containing the name of the resulting column |
size |
character string containing the name of the quantitative variable. |
Matthias Bannert
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.