Skip to content
Prev 277563 / 398506 Next

hierachical code system

Dear Albert-Jan,

The easiest way is to create extra variables with the corresponding aggregation level. substr() en strsplit() can be your friends. Once you have those variables you can use aggregate() or any other aggregating function. You don't need loops.

Best regards,

Thierry