![]() |
VOOZH | about |
tapply() function in R Language is used to apply a function over a subset of vectors given by a combination of factors
Syntax: tapply(vector, factor, fun) Parameters: vector: Created Vector factor: Created Factor fun: Function to be appliedExample 1: Output:
1 2 3 10 18 17This is how above code works: 👁 Image
1 2 3 24 210 72