Takes the output of compute_skill_ranking_series() and calculates
ranking changes between consecutive time periods. The function
pivots the series to wide format with rank and count columns per
period, filters by a minimum count threshold, computes the rank
variation (previous rank minus current rank, so positive values
indicate improvement), and returns the top-k skills per profession.
Arguments
- serie
A
data.tableas returned bycompute_skill_ranking_series(), with columnsprofessione,mese,skill,N, andrango.- min_n
Integer, minimum count in the most recent period for a skill to be included in the variation analysis. Default:
30L.- top_k
Integer, number of top-ranked skills to return per profession (by most recent rank). Default:
10L.