Wednesday, 2 October 2013

R function-- the default value does not work?

R function-- the default value does not work?

pI am really new to R. Allow me ask a beginner's question./p pWhen I type
p.adjust, for example, I can see the following. It seems that the argument
method is p.adjust.methods by default. I tried to trace the code but when
I typed something like:/p pmatch.arg(p.adjust.methods)/p pIt says: Error
in match.arg(p.adjust.methods) : 'arg' must be of length 1/p pwhy??/p
precodegt; p.adjust function (p, method = p.adjust.methods, n = length(p))
{ method lt;- match.arg(method) ... } /code/pre

No comments:

Post a Comment