Skip to content
Prev 12080 / 398502 Next

margin.table

On Mon, 2 Jul 2001, Jagat Sheth wrote:

            
Yes.
Try looking up the help page:

Arguments:

       x: an array


A data frame is *not* an array:
[1] FALSE

and final line of margin.table tries to make the result make into a
data frame.

One could argue that as it accepted a non-array it should do a better job
with it, but we need the author (who is away this week) to explain why
he copied the class of the first argument to the result.