What are advantages of loop function over normal for and while loop in R

r

#1

I have studied that in R there are loop function like lapply , tapply but I am really confused about that what are difference between loop function and for and while loop and where to use these loop function in our R program


#2

they are much much faster to do and easy to write code on once u have learnt them

see http://www.r-bloggers.com/guess-who-wins-apply-versus-for-loops-in-r/ as a start