Re: [R] Hopefully a simple question

2009-03-25 Thread joris meys
Dear Jacy, As Jorge said. To clarify : what you ask, is actually to compare the first element of genotype with the first element of FREQ, the second of genotype with the second of FREQ and so on. If the lengths differ, the shorter vector is recycled. This toy example illustrates that principle :

Re: [R] Hopefully a simple question

2009-03-25 Thread Jorge Ivan Velez
Dear Jacy, Try this: colnames(FREQ) %in% colnames(genotype) See ?"%in%" for details. Also, take a look at also ?match. HTH, Jorge On Wed, Mar 25, 2009 at 3:49 PM, Crosby, Jacy R wrote: > What am I missing here? Both of my column headers in the 'FREQ' table are > found in the 'genotype'; how

[R] Hopefully a simple question

2009-03-25 Thread Crosby, Jacy R
What am I missing here? Both of my column headers in the 'FREQ' table are found in the 'genotype'; however, they aren't being recognized. > colnames(FREQ) [1] "X17362526" "X17362627" > colnames(genotype) [1] "X17362311" "X17362316" "X17362346" "X17362420" "X17362421" "X17362422" "X17362435" "X