AgusSusanto gusanto at gmail.com writes:
I obtained error messages when I run these commands in UNIX, but I
obtained correct result when I run these command in WINDOWS. Can
somebody point out the problem and give the solution. Thanks.
dt-read.table(file=Fall.dat)
dim(dt)
[1] 1941
Are you sure Fall.dat is identical on both platforms, and that dt is also?
Did you intend to ignore the cases where dt$V2 equals zero?
Try, for example,
table(which(dt[,2] == 0)) ## also ==1, ==2, ==3
unique( dt[which(dt[,2] == 0),5]## also ==1, ==2, ==3
unique( dt$V5 )
adding
On Thu, 2006-10-05 at 16:57 -0400, AgusSusanto wrote:
I obtained error messages when I run these commands in UNIX, but I
obtained correct result when I run these command in WINDOWS. Can
somebody point out the problem and give the solution. Thanks.
Not without Fall.dat I suspect. please read