[R] assign value between different type: Double vs Integer

Dong GUO cguous at gmail.com
Sat Apr 24 15:31:14 CEST 2010

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,

More information about the R-help mailing list