Re: [Rd] xtabs and NA

2015-02-13 Thread Kirill Müller
On 09.02.2015 16:59, Gabor Grothendieck wrote: On Mon, Feb 9, 2015 at 8:52 AM, Kirill Müller kirill.muel...@ivt.baug.ethz.ch wrote: Passing table the output of model.frame would still allow the use of a formula interface: mf - model.frame( ~ data, na.action = na.pass) do.call(table, c(mf,

Re: [Rd] xtabs and NA

2015-02-09 Thread Gabor Grothendieck
On Mon, Feb 9, 2015 at 8:52 AM, Kirill Müller kirill.muel...@ivt.baug.ethz.ch wrote: Hi I haven't found a way to produce a tabulation from factor data with NA values using xtabs. Please find a minimal example below, it's also on R-pubs [1]. Tested with R 3.1.2 and R-devel r67720. It

[Rd] xtabs and NA

2015-02-09 Thread Kirill Müller
Hi I haven't found a way to produce a tabulation from factor data with NA values using xtabs. Please find a minimal example below, it's also on R-pubs [1]. Tested with R 3.1.2 and R-devel r67720. It doesn't seem to be documented explicitly that it's not supported. From reading the code [2]