Hi everyone, I need to see the source code of "function" Does anybody know how can I find so. Thanks a lot. -- View this message in context: http://r.789695.n4.nabble.com/Source-code-tp4474173p4474173.html Sent from the R help mailing list archive at Nabble.com.
Hi> > Hi everyone, > I need to see the source code of "function" > Does anybody know how can I find so. > Thanks a lot.What function? mean.default function (x, trim = 0, na.rm = FALSE, ...) { if (!is.numeric(x) && !is.complex(x) && !is.logical(x)) { warning("argument is not numeric or logical: returning NA") return(NA_real_) } if (na.rm) x <- x[!is.na(x)]........ Regards Petr> > -- > View this message in context: http://r.789695.n4.nabble.com/Source-code- > tp4474173p4474173.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guidehttp://www.R-project.org/posting-guide.html> and provide commented, minimal, self-contained, reproducible code.
Hi, function is a primitive, so seeing its source will take some work. See page 43 of http://cran.r-project.org/doc/Rnews/Rnews_2006-4.pdf for a guide on viewing compiled code sources. Cheers, Josh On Thu, Mar 15, 2012 at 1:05 AM, AnaKar <lupasaviz at gmail.com> wrote:> Hi everyone, > I need to see the source code of ?"function" > Does anybody know how can I ?find so. > Thanks a lot. > > -- > View this message in context: http://r.789695.n4.nabble.com/Source-code-tp4474173p4474173.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help at 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.-- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, Statistical Consulting Group University of California, Los Angeles https://joshuawiley.com/