search for: do_math

Displaying 2 results from an estimated 2 matches for "do_math".

Did you mean: do_math2
2012 Feb 11
2
How to see a R function's code
I was wondering how do I actually see what's inside a function, say, density of t distribution, dt()? I know for some, I can type the function name inside R and the code will be displayed. But for dt(), I get > dt function (x, df, ncp, log = FALSE) { if (missing(ncp)) .Internal(dt(x, df, log)) else .Internal(dnt(x, df, ncp, log)) } <environment: namespace:stats> I
1997 May 09
2
R-alpha: R-0.49 / S-plus: "default argument evaluation" bugs and woes
...97. c(x=x, y=y, sin=sin) } R> sintest2(1) [[1]] [1] 1 [[2]] [1] 2 [[3]] <primitive: sin> --------------- is almost okay, the buglet being that the names have been dropped from the list. But watch this: S> sintest2(1) function(x = 1, y = 2, sin.x) sin2 = .Internal(sin(x), "do_math", T, 109) --- returning a function ((now we see, why S's way of treating functions as lists sometimes badly sucks)). =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send &quot...