Update applyfunctions.r

added mapply and useful link