in R Language by
Q:
Sum() function in  R Language

▼ Show 1 Answer

0 votes
by

Another useful function to aggregate the variable is sum().

You can check which leagues have the more homeruns.

## Sum
data % > %
	group_by(lgID) % > %
	summarise(sum_homerun_league = sum(HR))
Learn More with Madanswer

Related questions

0 votes
asked Nov 6, 2019 in R Language by MBarbieri
...