[R] simple save question

2011-04-05 Thread xueke
hese values from the print command? Thanks a lot. Xueke __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, min

[R] simple loop questions

2011-04-23 Thread xueke
match column C with column B, and return the matched indexes. So what I desire is to return: [1] 1 2 6 [2] 3 5 Since value 2 corresponds to indexes 1,2,6, and 4 corresponds to indexes 3,5. Is there any way to write a loop to have this done? Thank you for the help. Xueke