Re: [Rd] Possible bug in edit(x) for editing matrices [tested on a Mac]

From: Hans-Jörg Bibiko <>
Date: Mon, 19 Dec 2011 12:43:01 +0100

On 19 Dec 2011, at 12:22, Prof Brian Ripley wrote:

>> it seems there's a possible bug in edit(x) if x is a matrix filled with NA only.

> It's as documented. Hint: look at mode(a) or str(a), and check what values are accepted for a logical matrix.

Thank you very much! I wasn't aware of the circumstance that mode(matrix()) of course returns 'logical'. Maybe one could warn the user in the function "edit(x)" that if (is.matrix(x) && is.logical(x) == TRUE) that edit(x) doesn't work since my workaround was that I created a matrix of the dimension 10x20 via matrix(NA, nrow=10, ncol=20) and used the GUI data editor to fill the matrix's cells with values.

Kind regards,
--Hans mailing list Received on Mon 19 Dec 2011 - 11:45:34 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 19 Dec 2011 - 14:00:19 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive