Thank you very much,
looks rather simple when viewed from behind :(
> Try this also:
> xtabs(values ~ diagnosis + marker, data=dataframe)
> You can make your examples self-running by providing fake data for
> diagnosis, e.g. using letters[] instead of diagnosis. In addition, note that
> your cb
Try this also:
xtabs(values ~ diagnosis + marker, data=dataframe)
On Wed, Nov 12, 2008 at 2:31 PM, Thorsten Raff <[EMAIL PROTECTED]>wrote:
> Hello
>
> I have the problem that I want to transform a dataframe as generated by
>
> diagnosis <- rep(diagnosis[1:3], 3)
> marker <- gl(3,3)
> values <- r
Thorsten Raff med2.uni-kiel.de> writes:
> I have the problem that I want to transform a dataframe as generated by
>
> diagnosis <- rep(diagnosis[1:3], 3)
> marker <- gl(3,3)
> values <- rnorm(9)
> dataframe <- cbind(diagnosis, marker, values)
> dataframe <- dataframe[c(1:5, 7:9), ]
>
> into a m
Hello
I have the problem that I want to transform a dataframe as generated by
diagnosis <- rep(diagnosis[1:3], 3)
marker <- gl(3,3)
values <- rnorm(9)
dataframe <- cbind(diagnosis, marker, values)
dataframe <- dataframe[c(1:5, 7:9), ]
into a matrix where levels(diagnosis) is indicating the rows
4 matches
Mail list logo