0 votes
in R Language by
Sum() function in  R Language

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))
...