Hi, sorry that got sent without the output :
Please ignore the aligning in the input, I am re-adding that here as well :
1GENEACDEFGHIKLMNPQRSTVWY2amt:Amet_00012902334171612422939635201325342732312
3amt:Amet_000219315421218835254372613914212030084

Output:
1GENEACDEFGHIKLMNPQRSTVWY2amt:Amet_00010.831808022254316NA0.831808022254316
0.8318080222543160.8318080222543160.8318080222543160.831808022254316
0.8318080222553840.8318080222553840.8318080222553840.831808022255384
0.8318080222553840.8318080222553840.8318080222553840.831808022255384
0.8318080222553840.8318080222553840.8318080222553840.831808022255384
0.8318080222553843amt:Amet_0002NANANANANANANANANANANANANANANANANANANANA4


On Mon, Mar 25, 2013 at 5:43 PM, Sahana Srinivasan <
sahanasrinivasan.91@gmail.com> wrote:

> Hi everyone,
> I'm using the following code to go over every element of a data frame (row
> wise). The problem I am facing is that the outer 'x' variable is not
> incrementing itself, thus, only one row of values is obtained, and the
> program does not proceed to the next row.
>
> This is the code:
>  while(x<=coln)
>  {
>
>    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 422939
> 6 3520 1325 3427 323 12 3amt:Amet_0002 19 315 4212 188 3525 437 2613 91421
> 20 300 8
>
>
>
>

	[[alternative HTML version deleted]]

