Try this:
prop.table(xtabs(~ paste(ID, Num) + Dir, x), 1)
On Thu, Oct 28, 2010 at 7:06 AM, Vanessa J wrote:
>
> Hello,
>
> I am relatively new to R. I am trying to do the following
> and cannot figure out a relatively fast, clean method of doing it in R.
> Here is a simple sample of what my dat
Hello,
I am relatively new to R. I am trying to do the following
and cannot figure out a relatively fast, clean method of doing it in R.
Here is a simple sample of what my data set looks like:
ID TryNum Dir
1 1 1 1
1 1 2 4
1 1 3 2
1 2
2 matches
Mail list logo