Skip to content

nice report generator?

5 messages · Duncan Murdoch, Hadley Wickham

#
To be strictly correct, shouldn't that be:

formula<- eval(substitute( value*v*LEFT ~ RIGHT, list(LEFT=LEFT, RIGHT=RIGHT)))

?
Would you consider making tabular generic?

Hadley
#
On 12-02-06 4:12 PM, Hadley Wickham wrote:
I think it probably doesn't matter.  The difference is that mine gives a 
pure language object, whereas yours gives a formula object.  The formula 
object has a class which means some methods will work differently, and 
it also has an environment attached, which defines where the variables 
in it should be resolved.  I suspect the variables shouldn't be resolved 
in the environment where "formula" was being created, so it's probably 
better not to attach an environment at all, but the tabular function 
ignores the environment of the formula (it uses its data argument for 
that), so it doesn't make a big difference.
Yes, that wouldn't cost much.

Duncan Murdoch
3 days later
#
Yes, sorry, I was probably being excessively picky :/  Formula
semantics are tricky though!

Hadley
3 days later
#
On 06/02/2012 4:12 PM, Hadley Wickham wrote:
I have now made tabular() into a generic function, but because of the 
problems at R-forge, can't commit the changes immediately.   The old 
tabular() function is now the tabular.formula() method; the default 
method tries to coerce the object to a formula to call that.  I think 
both my suggestion and yours would likely have problems in the new 
system (as they did in the old one) because the environment associated 
with the formula would be wrong.  It's a little tricky, but now 
tabular() works a lot more like model.frame(), which I think has to be 
considered to be the standard way to do this.

Duncan Murdoch
#
On 12-02-13 2:27 PM, Duncan Murdoch wrote:
The new version 0.5.30 with the generic tabular function is now on 
R-forge.  I'll likely push it to CRAN in a couple of days.

Duncan Murdoch