Displaying 2 results from an estimated 2 matches for "amet_0001".
2013 Mar 25
3
nested 'while' loops
...while(y<=rown)
{
n<-as.numeric(df[[y]][x]);
if(n>0)
{
lim<-(n-1);
S<-100;
(...)
}
opdf[[y]][x]<-sum;
}
y<-y+1;
}
x<-x+1;
}
Here is a sample of the input data:
GENE A CD EF GH IK LM NP QR ST VW Y 2amt:Amet_0001 29 023 3417 1612 4229 39635
20 1325 3427 323 12 3amt:Amet_0002 19 315 4212 188 3525 437 2613 914 2120 30
0 8
[[alternative HTML version deleted]]
2013 Mar 19
4
Copying rows in data frames
Hi,
I'm trying to copy the first row of one data frame to another. This is the
statement I am using :
df2[1,]<-df1[1,];
I have printed them out separately:
df1[1,] = A C D E F
But after copying:
df2[1,] = 96 29 88 122 68
Why isn't it copying? They are both data frames, and "as.character" isn't
working either.
Thanks for your input :)
[[alternative HTML version