Explain aggregate() function.
The aggregate() function is used to aggregate data in R. There are two methods which are collapsing data by using one or more BY variable and other is an aggregate() function in which By variable should be in the list. In R, the aggregate() function is used to compute summary statistics for data subsets. It … Read more