Can I make aggregated value of multiple variables at once?

image

This is my data, and I wanna make sum value of 4 'aadt' variables by unique value of 'LINK_ID'.
I know I can do this work for a single variable with functions like 'aggregate', but have no idea how to do same work for 4 variables at once.
Is there a function has an element that enables what I want?

The tidyverse package has functions that upu use as verbs, in your case group_by(), summarise() , the latter can use a helpfer function across() to repeat a summarisation over multiple variables.

Thank you. I'll try it

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.