[18821] in s-news-athena
No subject found in mail header
daemon@ATHENA.MIT.EDU (fan@katan.cybercom.net)
Mon Aug 2 17:32:50 1999
From: fan@katan.cybercom.net
Date: Mon, 2 Aug 1999 17:27:54 -0400
Message-Id: <199908022127.RAA03169@katan.cybercom.net>
To: s-news@wubios.wustl.edu
In writing data out to a file, how to define the number of digits of data?
I would throw out the digits at the end when writing it to a text file.
Therefore, I look for usage on page format using write(), write.table().
In particular, options(digits=..) has no effect.
Example:
x <- matrix(1:100, 10, 10)
x <- log(1+x)
# x is a matrix of fractions with long digits.
write(x, "x")
# "x" is messy to read; not many digits of precision are necessary.
options(digits=3)
write(x, "x")
#no effect.
-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu. To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message: unsubscribe s-news