s-news
[Top] [All Lists]

miss lines when use write.table() to output

To: <s-news@lists.biostat.wustl.edu>
Subject: miss lines when use write.table() to output
From: "Danni Wang" <wangdn@uclink4.berkeley.edu>
Date: Wed, 23 Oct 2002 09:42:16 -0700
Cc: "Danni Wang" <wangdn@uclink.berkeley.edu>
Importance: Normal
In-reply-to: <B9DC29E0.137B%fedriani@ebd.csic.es>
Reply-to: <wangdn@uclink4.berkeley.edu>
Hi, there,

I use these lines to write data into the txt files. In splus,
nrow(nyr)=nrow(ny)=nrow(nyrecon.deri)=1957.
but in txt files, nrow(nyr)=1951, nrow(nyrecon.deri)=1955. Missing lines are
not from the bottom. I don't
understand why they get shorter in output. Do you have some suggestions of
the causes? Are there other way to output
data?

Thanks very much,
Danni

nyr <- matrix(0,nrow(ny),col)
for (i in 1:col){
nyr[,i] <- nyrecon[[i]][1:nrow(ny)]
}
nyrecon.deri <- filter(nyr,c(0.2,-0.2),sides=1)
write.table(nyr,"s63.txt",sep="\t")
write.table(nyrecon.deri,"d63.txt",sep="\t")


<Prev in Thread] Current Thread [Next in Thread>