Gavin Simpson <[EMAIL PROTECTED]> writes:
>> df <- data.frame(resp = dat[,1], VARS = I(as.matrix(dat[, 2:101])))
>> class(df$VARS)
> [1] "AsIs"
>
> The class is AsIs for $VARS. But if I look at your yarn data set for
> example, the NIR component is of class "matrix":
>
>> class(yarn$NIR)
> [1] "ma
On Wed, 2008-07-02 at 10:32 +0200, Bjørn-Helge Mevik wrote:
> Gavin Simpson <[EMAIL PROTECTED]> 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
Gavin Simpson <[EMAIL PROTECTED]> 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],
On Wed, 2008-07-02 at 00:58 +1000, Jason Lee wrote:
> Hi,
>
> Thanks for the reply.
>
> Basically I dont have any label for my data except column 1 which is labeled
> with Sample1, Sample2...etc...(vertical).
Well that is going to cause you problems, not the one you report below,
but it will bit
So, I used df <- data.frame( x=I(coef(cancerv1(,2:407))),
y=cancerv1[,408])before feeding to PCR.
However, I get the below error.
Error in coef(cancerv1(, 2:407)) : could not find function "cancerv1".
It's because you have the syntax error 'cancerv1(...)', which looks to
R, and me, a functi
Hi,
Thanks for the reply.
Basically I dont have any label for my data except column 1 which is labeled
with Sample1, Sample2...etc...(vertical).
My cancerv1 data is data.frame.
So, I used df <- data.frame( x=I(coef(cancerv1(,2:407))),
y=cancerv1[,408])before feeding to PCR.
However, I get the b
Gavin Simpson <[EMAIL PROTECTED]> writes:
> You can do this another way though, that I feel is more natural. So lets
> assume that your data frame contains columns that are named, and that
> one of these is the response variable, the remaining columns are the
> predictors. Further assume that this
On Tue, 2008-07-01 at 10:54 +1000, Jason Lee wrote:
> Hi,
>
> Currently I have a dataset of 2400*408. And I would like to apply PCR method
> to study the any correlation between the tests.
> My current data is in data.frame and I have formed horizontal(1-407) to be
> the exact data, and (408) to b
8 matches
Mail list logo