[R] looking for a cleaner way to do something

2006-10-17 Thread Leeds, Mark \(IED\)
I have two numeric vectors each of length 17 and each is named the exact same way. so obsnum p m pppmp . dot dot dot.. temp1is141752 63 85 obsnum p m pppmp . dot dot dot.. temp2 is 1213 41

Re: [R] looking for a cleaner way to do something

2006-10-17 Thread Gabor Grothendieck
Try this: X - structure(11:15, .Names = letters[1:5]) Y - structure(21:25, .Names = letters[1:5]) rbind(group1 = X, group2 = Y) tab - rbind(group1 = X, group2 = Y) tab[,-1] / tab[,1] On 10/17/06, Leeds, Mark (IED) [EMAIL PROTECTED] wrote: I have two numeric vectors each of length 17 and each

Re: [R] looking for a cleaner way to do something

2006-10-17 Thread Gabor Grothendieck
Sorry there was an extra line in there. It should be: X - structure(11:15, .Names = letters[1:5]) Y - structure(21:25, .Names = letters[1:5]) tab - rbind(group1 = X, group2 = Y) tab[,-1] / tab[,1] On 10/17/06, Gabor Grothendieck [EMAIL PROTECTED] wrote: Try this: X - structure(11:15,