Re: [Rd] levels for list and data.frame

2006-03-21 Thread Gregor Gorjanc
Martin Maechler wrote: >>"Gregor" == Gregor Gorjanc <[EMAIL PROTECTED]> >>on Tue, 21 Mar 2006 20:50:21 +0100 writes: > > > Gregor> Martin Maechler wrote: > >> Hi Gregor, > >> > >> before even considering methods for "list" and > >> "data.frame", can you explain wh

Re: [Rd] levels for list and data.frame

2006-03-21 Thread Martin Maechler
Hi Gregor, before even considering methods for "list" and "data.frame", can you explain why you think it is important for levels() to become a generic function at all? For me, levels belong to factors (or then to contour plots, or co-plots ) but exactly because level is a too generic word, it see

Re: [Rd] levels for list and data.frame

2006-03-20 Thread Gregor Gorjanc
oops, this does not pass R CMD check. I will have to read manuals a bit more. ... * checking S3 generic/method consistency ... WARNING levels: function(x, ...) levels.list: function(x, drop) levels: function(x, ...) levels.data.frame: function(x, drop) ... Anyway, I would like to ask wha

[Rd] levels for list and data.frame

2006-03-20 Thread Gregor Gorjanc
Hello! Does R core find the following pacth usefull - I created methods for levels for list and data.frame, which can be usefull to get a list of levels for entries in a list or columns in a data.frame. Patch is attached and shown bellow example # Example > tmp <- list() > tmp$a <- factor(letters