If you are looping doing the assignment:

 gdata34[1,m]<-gdata[m,4]

why would yo expect that gdata[1,4]  would have the same value as
gdata[1,4].  Do you have your indices reversed?

You need to provide at least the data in 'gdata' so we have a reproducible
example.

On Sat, Apr 24, 2010 at 9:13 AM, GUO Dong 郭东 <guo.don...@gmail.com> wrote:

> Dear list,
>
> just to put it in a simple way:
>
> i read.csv from csv file to create a gdata
>
> then, create array gdata34
>
> however, when making a loop for assigning gdata34[1,m]<-gdata[m,4], this is
> what happen
>
> gdata[1,4] 's real value is 10354, however, the gdata34[1,4] turns to be
> 883
>
> then i checked the type: gdata[1,4] is integer, while gdata34[1,4] is
> double.
>
> Can any one give me some help on it????
>
> Many thanks in advance.
>
> Best regards,
> Dong
>
>
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html<http://www.r-project.org/posting-guide.html>
> and provide commented, minimal, self-contained, reproducible code.
>



-- 
Jim Holtman
Cincinnati, OH
+1 513 646 9390

What is the problem that you are trying to solve?

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to