Aggregate salary data computing count, mean and median salary per group. The default grouping produces one row per salary band and month combination.
Usage
compute_salary_by_period(salary_data, by = c("salary", "mese"))Arguments
- salary_data
A data.table returned by
extract_salary_data(). Must containsalaryvalueand the columns listed inby.- by
Character vector of column names to group by. When
"mese"is included and does not yet exist insalary_data, it is derived from thedatacolumn as a year-month string ("YYYY-MM"). Defaults toc("salary", "mese").