in R Language by (1.0k points)
Sum() function in  R Language

1 Answer

0 votes
by (1.0k points)

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 (1.0k points)
...