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
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.
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
3 matches
Mail list logo