Skip to content
Prev 278713 / 398502 Next

Comparing data

Unlike a data.frame, a matrix can only hold one type of data. Since
you have a column of characters ("labSt") in your original data,
turning it into a matrix will give you a matrix of characters. You can
check it is the case by asking class(DF.m[1,1]).

So you'll have to remove this labSt column before you use as.matrix,
maybe use it for your rownames if you want to keep labSt around.


On Mon, Nov 28, 2011 at 11:49 AM, Matev? Pavli?
<matevz.pavlic at gi-zrmk.si> wrote: