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

Related questions

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