Re: [R] source code of a function

2016-07-08 Thread Marc Schwartz
> On Jul 8, 2016, at 6:16 AM, T.Riedle wrote: > > Dear all, > > > I am currently working with the "jvnVaR" package and I need to explain the > assumptions behind the function jVaR(). > > > Is there a function in R which calls the code behind a function? > > > Kindest regards Hi, If you

Re: [R] source code of a function

2016-07-08 Thread S Ellison
> Is there a function in R which calls the code behind a function? Type the function name without the brackets. *** This email and any attachments are confidential. Any use...{{dropped:8}} __

Re: [R] source code for dbeta

2015-06-08 Thread Duncan Murdoch
On 07/06/2015 11:05 PM, Varun Sinha wrote: > Hi, > > Thanks a lot. I downloaded the tar.gz file and I found the C code. > > I would really appreciate it if you could field another question: > I have to use sql, and I have to perform various statistical > calculations - like integrate, dbeta etc.

Re: [R] source code for dbeta

2015-06-08 Thread Varun Sinha
Hi, Thanks a lot. I downloaded the tar.gz file and I found the C code. I would really appreciate it if you could field another question: I have to use sql, and I have to perform various statistical calculations - like integrate, dbeta etc. Sql does not have these functions, plus they are very dif

Re: [R] source code for dbeta

2015-06-07 Thread Duncan Murdoch
On 07/06/2015 6:11 PM, Mark Sharp wrote: > Varun, > > If you type dbeta at the command line you get the R source, which in this > case tells you that the code is calling a compiled source. This is indicated > by the line No, that says that the R code (what is shown) is compiled. What indicate

Re: [R] source code for dbeta

2015-06-07 Thread Mark Sharp
Varun, I apologize. I hit send before completing. Look at the source document in the link I provided. dbeta is part of the stats package, which is part of the core R system and I do not think it is available as a standalone package. The linked document provides instructions for finding base R

Re: [R] source code for dbeta

2015-06-07 Thread Mark Sharp
Varun, If you type dbeta at the command line you get the R source, which in this case tells you that the code is calling a compiled source. This is indicated by the line See the following. > dbeta function (x, shape1, shape2, ncp = 0, log = FALSE) { if (missing(ncp)) .Call(C_dbe

Re: [R] Source Code

2013-04-20 Thread R. Michael Weylandt
e = pmatch(vfont[1L], Hershey$typeface), >>fontindex = pmatch(vfont[2L], Hershey$fontindex)) >>.Internal(text(xy.coords(x, y, recycle = TRUE), labels, adj, >> pos, offset, vfont, cex, col, font, ...)) >> } >> >> >> >> Regard

Re: [R] Source Code

2013-04-20 Thread David Winsemius
oords(x, y, recycle = TRUE), labels, adj, > pos, offset, vfont, cex, col, font, ...)) > } > > > > Regards, > > Eva > > --- El dom, 21/4/13, David Winsemius escribió: > > De: David Winsemius > Asunto: Re: [R] Source Code > Para: "R. Michael Weyla

Re: [R] Source Code

2013-04-20 Thread Eva Prieto Castro
.coords(x, y, recycle = TRUE), labels, adj,     pos, offset, vfont, cex, col, font, ...)) } Regards, Eva --- El dom, 21/4/13, David Winsemius escribió: De: David Winsemius Asunto: Re: [R] Source Code Para: "R. Michael Weylandt " CC: "Eva Prieto Castro" , "&q

Re: [R] Source Code

2013-04-20 Thread David Winsemius
On Apr 20, 2013, at 3:34 PM, R. Michael Weylandt wrote: > > > On Apr 20, 2013, at 6:23 PM, Eva Prieto Castro wrote: > >> Dear all, >> >> How can I get the source code of text function? >> > > What is the 'text function'? > > Try typing the name of the function at the prompt without any

Re: [R] Source Code

2013-04-20 Thread Rui Barradas
text") The text function let you add text in a plot. How can I obtain the source code?. Thanks. Eva --- El dom, 21/4/13, R. Michael Weylandt escribió: De: R. Michael Weylandt Asunto: Re: [R] Source Code Para: "Eva Prieto Castro" CC: "" Fecha: domingo, 21 de

Re: [R] Source Code

2013-04-20 Thread Eva Prieto Castro
This is what I get when typing text: > text function (x, ...) UseMethod("text") The text function let you add text in a plot. How can I obtain the source code?. Thanks. Eva --- El dom, 21/4/13, R. Michael Weylandt escribió: De: R. Michael Weylandt Asunto: Re: [R] Sou

Re: [R] Source Code

2013-04-20 Thread R. Michael Weylandt
On Apr 20, 2013, at 6:23 PM, Eva Prieto Castro wrote: > Dear all, > > How can I get the source code of text function? > What is the 'text function'? Try typing the name of the function at the prompt without any parentheses after it. If its written in R, then it should be visible. Michael

Re: [R] Source code for simple Forward step wise regression .

2012-06-06 Thread Sarah Goslee
I'm sorry, but I don't understand your question. What is the R problem you are trying to solve? Sarah On Wed, Jun 6, 2012 at 10:51 AM, Shilpi Harpavat (PDF) wrote: > Hi , > > I want to implement a simple forward stepwise regression in java which > fits a linear model with no  term and then add t

Re: [R] Source code

2012-03-15 Thread Joshua Wiley
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 wrote: > Hi everyone, > I need to see the source code of

Re: [R] Source code

2012-03-15 Thread Petr PIKAL
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 n

Re: [R] source code of MARS

2012-02-15 Thread R. Michael Weylandt
http://cran.r-project.org/web/packages/earth/index.html Click on package source and have fun. Michael 2012/2/15 Elçin Kartal : > Dear Sir/Madam, > > I am a phd student and I am trying to implement a new approach for the knot > selection procedure in MARS algorithm. In order to apply and test the

Re: [R] Source Code glm() question

2011-08-10 Thread Thomas Lumley
On Wed, Aug 10, 2011 at 11:25 PM, ONKELINX, Thierry wrote: > Just type glm at the prompt. > Typing glm.fit at the prompt will probably be more informative. -thomas -- Thomas Lumley Professor of Biostatistics University of Auckland __ R-help@r-pr

Re: [R] Source Code glm() question

2011-08-10 Thread ONKELINX, Thierry
Just type glm at the prompt. > glm function (formula, family = gaussian, data, weights, subset, na.action, start = NULL, etastart, mustart, offset, control = list(...), model = TRUE, method = "glm.fit", x = FALSE, y = TRUE, contrasts = NULL, ...) { call <- match.call() if (

Re: [R] Source Code File For an Object

2011-04-19 Thread Duncan Murdoch
On 19/04/2011 5:18 PM, rivercode wrote: Is there anyway to query an object to find its source code file ? Created object F from file F.r, can object F tell me this ? In general, no. For functions you can if the "keep.source" option was active when it was sourced. Duncan Murdoch __

Re: [R] Source code of rnorm, where can I find it?

2011-02-02 Thread Waclaw Kusnierczyk
On 02/02/2011 01:50 PM, Ista Zahn wrote: .Internal functions such as rnorm cannot be retrieved in this way as far as I know. You may have to download the source and find it direclty. In this particular case you can find the implementation of rnorm with grep -rn --include=*.c '"rnorm"' .

Re: [R] Source code of rnorm, where can I find it?

2011-02-02 Thread Ista Zahn
R source is available on CRAN, e.g., http://cran.r-project.org/src/base/R-2/R-2.12.1.tar.gz Many functions can be displayed simply by typing theme , e.g., > methods(mean) [1] mean.data.frame mean.Date mean.defaultmean.difftime [5] mean.POSIXctmean.POSIXlt > mean.default Many other

Re: [R] Source code for gee

2010-05-13 Thread Uwe Ligges
On 13.05.2010 16:29, Joey Zhou wrote: Dear all: I am looking for the source code for gee(generalized estimation equations by Liang and Zeger) package. Can you help? download.packages("gee", type="source", destdir="~") Uwe Ligges Thanks much, Joey [[alternative HTML version del

Re: [R] Source code for the t-distribution

2010-03-09 Thread Sundar Dorai-Raj
Here it is. https://svn.r-project.org/R/trunk/src/nmath/pt.c --sundar On Tue, Mar 9, 2010 at 4:24 AM, Ravi Kulkarni wrote: > > I have tried looking for the source code for the pt() function in > > https://svn.r-project.org/R/trunk/src/library/stats/ > > and am unable to find it there. Can

Re: [R] Source code for some grid package documentation

2009-12-04 Thread Sebastien Bihorel
Thank you Romain, I appreciate the help. Romain Francois wrote: On 12/04/2009 04:28 PM, Sebastien Bihorel wrote: Dear R-users, I was wondering if anybody would have the source code used to create the last figure in the frame.pdf documentation distributed with the grid package. > file.show(

Re: [R] Source code for some grid package documentation

2009-12-04 Thread Romain Francois
On 12/04/2009 04:28 PM, Sebastien Bihorel wrote: Dear R-users, I was wondering if anybody would have the source code used to create the last figure in the frame.pdf documentation distributed with the grid package. > file.show( vignette( "frame", package = "grid" )$file ) Thanks in advance.

Re: [R] source code for prompt()

2009-04-17 Thread Ben Bolker
Markus Loecher-4 wrote: > > Dear R community, > pardon my ignorance but how would you get the source code for"non-visible > functions" ? > > For example, I would like to see and modify the source code for the > prompt() > function. > > prompt() is visible: > prompt function (object, filena

Re: [R] source code for prompt()

2009-04-17 Thread ronggui
> prompt function (object, filename = NULL, name = NULL, ...) UseMethod("prompt") > methods("prompt") [1] prompt.data.frame* prompt.default* Non-visible functions are asterisked > getAnywhere("prompt.default") 2009/4/18 Markus Loecher : > Dear R community, > pardon my ignorance but how would

Re: [R] Source code for nlm()

2009-02-19 Thread Ravi Varadhan
-boun...@r-project.org] On Behalf Of Duncan Murdoch Sent: Thursday, February 19, 2009 1:17 PM To: Ravi Varadhan Cc: r-help@r-project.org Subject: Re: [R] Source code for nlm() On 19/02/2009 1:00 PM, Ravi Varadhan wrote: > Hi, > > Where can I find the source code for nlm()? I dowloaded the

Re: [R] Source code for nlm()

2009-02-19 Thread Duncan Murdoch
On 19/02/2009 1:00 PM, Ravi Varadhan wrote: Hi, Where can I find the source code for nlm()? I dowloaded the R2.8.1.tar.gz file and looked at all the .c and .f files, but couldn't find either nlm.c or nlm.f There is an nlm.r file, but that is not useful. I don't see why you say it's not us

Re: [R] Source code for nlm()

2009-02-19 Thread Christos Hatzis
It seems to be in optimize.c Rgonzui has a very nice search facility for source of R or CRAN packages (however it is against R 2.8.0 source): http://rgonzui.nakama.ne.jp/R/markup/R-2.8.0/src/main/optimize.c?fm=c&q=nlm# l378 -Christos > -Original Message- > From: r-help-boun...@r-project.

Re: [R] Source code

2009-01-07 Thread Simon Blomberg
It is on CRAN: http://cran.r-project.org/src/contrib/extRemes_1.58.tar.gz On Wed, 2009-01-07 at 22:33 -0800, Benjamin Modra wrote: > Hi, > > Can anyone point me to the source code of extRemes? > > Thanks, Ben > > > Stay connected to the people that matter most with a smarter inbox.

Re: [R] Source code for ppr (Projection Pursuit Regression)

2008-10-28 Thread Erin Hodgess
To get the references, check ?ppr For the code: > methods(ppr) [1] ppr.default* ppr.formula* Non-visible functions are asterisked > getAnywhere(ppr.default) A single object matching 'ppr.default' was found It was found in the following places registered S3 method for ppr from namespace stat

Re: [R] Source code of Strauss Process

2008-09-17 Thread Rolf Turner
On 18/09/2008, at 9:50 AM, <[EMAIL PROTECTED]> wrote: Dear all, I want to simulate a Strauss Hard Core process in 3D. I have found that someone else tried to do the same and he recived this answer, "If you need this immediately, I suggest you follow Brian Ripley's advice. This probably

Re: [R] source code functions

2008-07-18 Thread Gavin Simpson
On Fri, 2008-07-18 at 09:37 -0400, stephen sefick wrote: > >na.contiguous > function (object, ...) > UseMethod("na.contiguous") > > > this is what I get when I look for the source code for some functions- Is > there a way to look at the source code? na.contiguous is an S3 generic function, and

Re: [R] source code functions

2008-07-18 Thread Henrique Dallazuanna
This is a S3 method, then: methods("na.contiguous") getS3method("na.contiguous", "data.frame") getS3method("na.contiguous", "zoo") On Fri, Jul 18, 2008 at 10:37 AM, stephen sefick <[EMAIL PROTECTED]> wrote: >>na.contiguous > function (object, ...) > UseMethod("na.contiguous") > > > this is wha

Re: [R] source code for R-dev packages

2008-07-14 Thread Prof Brian Ripley
On Mon, 14 Jul 2008, Mark Kimpel wrote: Where is the link on www.r-project.org or CRAN to download source code for development versions of packages? This is straightforward for BioConductor packages but I can't seem to find it for R packages. It is a Bioconductor concept. It conflates two ide