Thanks a lot Marc, for informing that R is object oriented, implying that one should always try to vectorise the code (although I am not so clear why this should be the case) but also for all the references you provide.