Skip to content
Prev 148720 / 398500 Next

Help in using PCR

Gavin Simpson <gavin.simpson at ucl.ac.uk> writes:
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.
Message-ID: <s3sd4lwn0tl.fsf@slagelg.uio.no>
In-Reply-To: <1214926387.7746.57.camel@prometheus.geog.ucl.ac.uk> (Gavin Simpson's message of "Tue, 01 Jul 2008 16:33:07 +0100")