Re: [R] Help in using PCR

From: Bjørn-Helge Mevik <>
Date: Wed, 02 Jul 2008 10:32:22 +0200

Gavin Simpson <> writes:

> Ok, lets sort this out. [Not tested as I don't have your data]
> df <- data.frame(resp = cancerv1[, 408],
> VARS = as.matrix(cancerv1[, 2:407])

Actually, you _do_ need an I() here:

df <- data.frame(resp = cancerv1[, 408],

                 VARS = I(as.matrix(cancerv1[, 2:407])))

otherwise data.frame() will split the matrix into single coloumn variables.

Bjørn-Helge Mevik

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Wed 02 Jul 2008 - 08:36:18 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 02 Jul 2008 - 10:31:26 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive