Thanks to Prof. Ripley,
the fix is: attr(The matrix with class 'structure', "na.message") <- NULL
john
******************************
original message:
Hi S-users,
I had a matrix with many NAs scattered through it.
I selected some desired columns to a new matrix, then did an na.omit to
remove NA'd rows.
The result was an object of class "structure" which was assessable in
command line calls, and appeared upon the call ls(), but was not shown in
object explorer nor in the File menu. This was irritating because I could
not create an "edit" display as done by clicking in the object explorer.
Is there a simple way to convert the "structure" back to a matrix
(as.matrix did not work)?
I resorted to copying into word, etc etc, and then back to S with
read.table. Not nice.
john
John Fennick
jhf2@adelphia.net
alt: j.fennick@ieee.org
Tel: 603.526.4023
134 Brookside Drive
New London, NH 03257
USA
|