Displaying 1 result from an estimated 1 matches for "barrtot".
Did you mean:
barrot
2009 Jan 21
1
trouble converting an array to a dataframe
...l
then need to merge it with another dataframe that has a column named
redlognumb.) As you can see below, the data.frame() function turns
xrays.data into a two-variable dataframe. How can I get three columns
(or variables) into my final dataframe?
Thanks.
> head(xrays)
redlognumb radiologis barrtotal
1 3 2 13
2 4 2 16
3 5 2 10
4 6 2 11
5 9 2 NA
6 10 2 NA
>melted.xrays <- melt(xrays, id=c("redlognumb","radiologis"))
>...