[R] Is there a function to interdigitate two columns?

2010-07-25 Thread Bryan Hanson
Hello List Inhabitants: I donĀ¹t know what this operation is called or if there is a function that does it automatically, hence I seek your help! If I divide a large data collection tasks between two students, and I have a master list of samples, but one student records some of the values, and

Re: [R] Is there a function to interdigitate two columns?

2010-07-25 Thread RICHARD M. HEIBERGER
result - data.frame(samp=samp, merged=ifelse(is.na(student2), student1, student2)) result samp merged 1 A 25.50 2 B 29.40 3 C 22.00 4 D 34.30 5 E 13.60 6 F 10.50 7 G 19.70 8 H 20.22 9 I 17.00 10J 12.90 Rich [[alternative HTML