Re: [R] trouble converting an array to a dataframe

2009-01-22 Thread hadley wickham
On Thu, Jan 22, 2009 at 9:09 AM, Christopher W. Ryan wrote: > I probably did not explain my data clearly. I am starting with a > dataframe with three columns: > > redlognumb radiologistbarrtotal > > where the entries in the variable radiologist are either 1 or 2, > indicating which radiolo

Re: [R] trouble converting an array to a dataframe

2009-01-22 Thread Christopher W. Ryan
I probably did not explain my data clearly. I am starting with a dataframe with three columns: redlognumb radiologistbarrtotal where the entries in the variable radiologist are either 1 or 2, indicating which radiologist generated that barrtotal. All subjects had their X-ray read independ

Re: [R] trouble converting an array to a dataframe

2009-01-21 Thread hadley wickham
On Tue, Jan 20, 2009 at 11:10 PM, Christopher W. Ryan wrote: > I start with a dataframe called xrays. It contains scores on films from > each of two radiologists. It is in "long" format. I used the reshape > package to melt a data frame and then cast it into "wide" format, one > line for each pati

[R] trouble converting an array to a dataframe

2009-01-20 Thread Christopher W. Ryan
I start with a dataframe called xrays. It contains scores on films from each of two radiologists. It is in "long" format. I used the reshape package to melt a data frame and then cast it into "wide" format, one line for each patient (identified by redlognumb) with scores from both radiologists for