I create a function with R, I want to know how many argument number. Thanks in advance. -- Web Page http://geocities.com/lord_tyranus_96/
Look at ?nargs On 8/31/06, Lord Tyranus <lord.tyranus.96 at gmail.com> wrote:> I create a function with R, I want to know how many argument number. > Thanks in advance. > > -- > Web Page > http://geocities.com/lord_tyranus_96/ > > ______________________________________________ > R-help at stat.math.ethz.ch 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. >
?formals ?nargs depending if you mean the number of formal arguments or the number of actual arguments. On Thu, 31 Aug 2006, Lord Tyranus wrote:> I create a function with R, I want to know how many argument number. > Thanks in advance. > >-- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595