Categories

Nov 14, 2019 in R Language

Q: Sum() function in  R Language

1 Answer

Nov 14, 2019

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))
Click here to read more about Loan/Mortgage
Click here to read more about Insurance

Related questions

Madanswer
Nov 6, 2019 in R Language
Jul 28, 2019 in R Language
Nov 14, 2019 in R Language
...