Re: [R] Loop or some other way to parse by data generated values when it is not linear

2013-03-18 Thread plessthanpointohfive
This works really great, too. Thanks for this option. I am glad I have two ways to accomplish this. I KNEW it was going to be that simple. I was convinced I was making more out of it than I needed to and I'm glad to see I was right. Best, Jen (It's fun to be new at something when I'm this

Re: [R] Loop or some other way to parse by data generated values when it is not linear

2013-03-18 Thread plessthanpointohfive
That works great! I didn't even know there was a reshape2 package. Thanks! Jen On 03/18/2013 01:49 PM, arun wrote: Hi, library(reshape2) dcast(tmp.n,X1~X2,value.var="Y") # X1 0 2 4 #1 0 83 12 14 #2 1 107 25 27 #3 2 47 14 28 #4 3 27 4 13 #5 4 38 9 18 #6 99 1 0 0 A.K.

[R] Loop or some other way to parse by data generated values when it is not linear

2013-03-18 Thread plessthanpointohfive
I'm sorry for the really vague subject line but I am not sure how to succinctly describe what I am doing and what the problem is. But, here goes: 1. I have data with two-way data with frequencies. Below is an example, though in reality I am looking at about 10 different variables that I am