What is recycling in R
Recycling is when an object is automatically extended in certain operations to match the length of another, longer object.
For example, the vectorised addition results in the following:
c(1,2,3) + c(1,2,3,4,5,6)
[1] 2 4 6 5 7 9
Because of the recycling, the operatio...