Gabor Grothendieck wrote:
> If you write an update.X method where X is the class of your graph
> objects then it will work on
> your graph objects and yet still work on lm, glm, etc.

One example (for non-model objects) is e.g. the update method
for survey design objects (update.survey.design)
in the survey package by Thomas Lumley.

HTH,
Tobias

> On Nov 20, 2007 7:01 AM, Søren Højsgaard <[EMAIL PROTECTED]> wrote:
>> Dear all,
>>
>> I wonder if it is "bad style" (or something worse) to create an "update" 
>> function which does not work on model objects of the lm, glm etc. type. 
>> Specifically, I have some graph objects (graphs as mathematical objects, not 
>> as displays) which I want to alter and for that purpose I thought of writing 
>> an update function. Would doing so violate a "deeper philosophy" in the R 
>> system or have other unfortunate consequences. If so, I'm happy to hear 
>> other suggestions...
>>
>> Regards
>> Søren

-- 

Tobias Verbeke - Consultant
Business & Decision Benelux
Rue de la révolution 8
1000 Brussels - BELGIUM

+32 499 36 33 15
[EMAIL PROTECTED]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to