Statistics-R - Looping with subset

Posted on Thu Jun 12 15:09:08 2008 by vegvarizs
Looping with subset
Dear all, do you have any idea how can I use subsets in looping? The first column of my dataset includes species names with all of them occuring more than once. I would like to perform analyses for each species separately. I can do the subsetting, but I do not know how to refer to the separate values of the species name variable during the looping (in a for cycle). Maybe a simple question, I am quite new for R. Many thanks! Regards Zsolt
Write a response