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

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Mon, 19 Dec 2011 11:22:50 +0000

On 19/12/2011 09:48, Hans-Jörg Bibiko wrote:
> Hi,
>
> 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.

> To reproduce please do the following:
>
> a<- matrix()
> edit(a)
>
> change e.g. the cell value to 1 and close the GUI-based editor. edit(a) returns NA. This also happens for any dimension of the matrix as long as all cell values are NA. If at least one of the cell values is not NA it works correctly. The same behaviour I also get via "fix(x)".
>
> I tried this by using R via the Terminal (editing via X11 and Tcl/Tk) and the Mac R-GUI app.
>
> Here's my sessionInfo():
>
> R version 2.14.0 (2011-10-31)
> Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)
>
> locale:
> [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
>
> attached base packages:
> [1] stats graphics grDevices utils datasets methods base
>
>
> Any ideas? Or is this an undocumented behaviour?

> Best,
> --Hans
>
> ______________________________________________
> R-devel_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel

-- 
Brian D. Ripley,                  ripley_at_stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Mon 19 Dec 2011 - 11:25:11 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 - 12:50:19 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive