Re: [R] function code

2008-01-25 Thread Duncan Murdoch
On 1/25/2008 9:46 AM, Luis Ridao Cruz wrote: > R-help, > > Sorry for this question (I guess it has been addressed before but > I could not find it in the archives) > but how can I see a function code > when the following comes up: > >> svymean > function (x, design, na.rm = FALSE, ...) > { >

Re: [R] function code

2008-01-25 Thread Gavin Simpson
hits=-2.6 tests�YES_00 X-USF-Spam-Flag: NO On Fri, 2008-01-25 at 14:46 +, Luis Ridao Cruz wrote: > R-help, > > Sorry for this question (I guess it has been addressed before but > I could not find it in the archives) > but how can I see a function code > when the following comes up: > > > sv

Re: [R] function code

2008-01-25 Thread Romain Francois
Hi, This IS the code of the function. It is a generic function, the actual method used depends on the class of the object. You will find methods for this function by doing: R> methods("svymean") [1] svymean.survey.design* svymean.survey.design2* svymean.svyrep.design* [4] svymean.twophase*