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

2010-04-24 Thread Dong GUO
-- Forwarded message -- From: Dong GUO Date: Sat, Apr 24, 2010 at 4:50 PM Subject: Re: [R] assign value between different type: Double vs Integer To: Sarah Goslee Thanks, Sarah. the loop is all right. this is what I just experimented. and when trying to do as.numeric (ggg), and

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

2010-04-24 Thread Dong GUO
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