From hpages at fredhutch.org  Wed Jan 13 19:44:21 2016
From: hpages at fredhutch.org (=?UTF-8?B?SGVydsOpIFBhZ8Oocw==?=)
Date: Wed, 13 Jan 2016 10:44:21 -0800
Subject: [Rd] subscripting a table changed behavior in R devel
Message-ID: <56969B05.8020203@fredhutch.org>

Hi,

With R 3.2.3:

   > t <- table(sample(6, 50, replace=TRUE), sample(4, 50, replace=TRUE))
   > class(t[1:3, ])
   [1] "matrix"

With R devel:

   > t <- table(sample(6, 50, replace=TRUE), sample(4, 50, replace=TRUE))
   > class(t[1:3, ])
   [1] "table"

This breaks some Bioconductor packages that are calling as.data.frame()
on the result of this subscripting (as.data.frame.table and
as.data.frame.matrix behave very differently).

Could this change be mentioned in the NEWS file?

Thanks,
H.

-- 
Herv? Pag?s

Program in Computational Biology
Division of Public Health Sciences
Fred Hutchinson Cancer Research Center
1100 Fairview Ave. N, M1-B514
P.O. Box 19024
Seattle, WA 98109-1024

E-mail: hpages at fredhutch.org
Phone:  (206) 667-5791
Fax:    (206) 667-1319



[Rd] subscripting a table changed behavior in R devel
=?UTF-8?B?SGVydsOpIFBhZ8Oocw==?=