Re: [R] What are the pros and cons of the various R functions and methods for conducting least median of squares regression analysis?

2022-04-17 Thread Enrico Schumann
On Sat, 16 Apr 2022, Kelly Thompson writes: > What are the pros and cons of the various R functions and methods for > conducting least median of squares regression analysis? > > I know about these: > > lqs, wth method = "lms" and lmsreg, which as I understan dit

Re: [R] What are the pros and cons of the various R functions and methods for conducting least median of squares regression analysis?

2022-04-16 Thread Avi Gross via R-help
Good luck. -Original Message- From: Kelly Thompson To: r-help@r-project.org Sent: Sat, Apr 16, 2022 2:45 pm Subject: [R] What are the pros and cons of the various R functions and methods for conducting least median of squares regression analysis? What are the pros and cons of the various R functions a

Re: [R] What are the pros and cons of the various R functions and methods for conducting least median of squares regression analysis?

2022-04-16 Thread Bert Gunter
hings into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Sat, Apr 16, 2022 at 11:45 AM Kelly Thompson wrote: > > What are the pros and cons of the various R functions and methods for > conducting least median of squares regression analysis? > > I kn

Re: [R] functions st_transform and st_point

2022-03-23 Thread Bert Gunter
This is a good site for such searches: https://rdrr.io/ Searching on "st_point" there says it's in the 'geotidy' package on github. Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom

Re: [R] Handling interrupts in long-running R functions

2021-09-15 Thread bretschr
? (I guess I could check the > length of sys.parents() and avoid recovering from the interrupt if > called from some other function, but that feels dirty.) Could something > similar be achieved with options(error = recover) and R restarts? Are > there other ways of, well, interrupting the

Re: [R] [External] Handling interrupts in long-running R functions

2021-09-10 Thread luke-tierney
similar be achieved with options(error = recover) and R restarts? Are there other ways of, well, interrupting the execution of R functions without changing the semantics of interrupts in R? I've been working with MATLAB lately (when in Rome, do as Romans do...), and their idiom for my desired

[R] Handling interrupts in long-running R functions

2021-09-10 Thread Ivan Krylov
similar be achieved with options(error = recover) and R restarts? Are there other ways of, well, interrupting the execution of R functions without changing the semantics of interrupts in R? I've been working with MATLAB lately (when in Rome, do as Romans do...), and their idiom for my desired behavio

[R] [R-pkgs] arsenal v3.0.0: An Arsenal of 'R' Functions for Large-Scale Statistical Summaries

2019-03-26 Thread Heinzen, Ethan P. via R-packages
I'm pleased to announce the release of the "arsenal" package v3.0.0 on CRAN (https://cran.r-project.org/package=arsenal)! "arsenal" has experienced some major growth in the last few months, starting with the release of v2.0.0 in January. We tried to maintain backwards compatibility wherever

Re: [ESS] looking for definitions of R functions

2018-06-22 Thread Vitalie Spinu via ESS-help
is that you need to open the buffers first. Vitalie >> On Fri, Jun 22 2018 10:15, Stephen Eglen via ESS-help wrote: > Hello, > what are people using (if anything) to find declarations of R functions > within Emacs buffers? e.g. when point is on the name of a function, you > hit a

Re: [ESS] looking for definitions of R functions

2018-06-22 Thread Lionel Henry via ESS-help
wrote: > > Hello, > > what are people using (if anything) to find declarations of R functions > within Emacs buffers? e.g. when point is on the name of a function, you > hit a keybinding to look up the definiton of that function. > > I just had some success with using dumb-jump.el

Re: [R] functions from 'base' package are not accessible

2017-08-24 Thread Hadley Wickham
This was a change in tidyr 0.7.0 that is causing a lot of confusion, so we are preparing tidyr 0.7.1 which will back this change out. If you want a work around in the meantime, you can express your operation a bit more elegantly as: library(tidyr) df <- data.frame(v1 = 1:5, somestring = 6:10,

Re: [R] functions from 'base' package are not accessible

2017-08-24 Thread William Dunlap via R-help
Or perhaps two exclamation points would be better ('unquote' in the tidyverse lexicon, 3 bangs is 'unquote-splice'). Bill Dunlap TIBCO Software wdunlap tibco.com On Thu, Aug 24, 2017 at 10:20 AM, William Dunlap wrote: > Try putting !!! (three exclamation symbols) in front of

Re: [R] functions from 'base' package are not accessible

2017-08-24 Thread Jeff Newmiller
Looks like a bug to me. I think you need to correspond with the package (tidyr?) maintainer, perhaps by putting a bug report on GitHub. Next time please make your example reproducible by including the necessary "library" function calls. -- Sent from my phone. Please excuse my brevity. On

Re: [R] functions from 'base' package are not accessible

2017-08-24 Thread William Dunlap via R-help
Try putting !!! (three exclamation symbols) in front of which(...)== The non-standard evaluation in the tidyverse can cause confusion. Bill Dunlap TIBCO Software wdunlap tibco.com On Thu, Aug 24, 2017 at 4:32 AM, Eugeny Melamud < eugeny.mela...@lanit-tercom.com> wrote: > Hi all! > > The

Re: [R] functions from 'base' package are not accessible

2017-08-24 Thread Bert Gunter
Inline. -- Bert On Thu, Aug 24, 2017 at 4:32 AM, Eugeny Melamud wrote: > Hi all! > > The following code (executed in console)... > somevar <- data.frame(v1 = 1:5, somestring = 6:10, v3 = 11:15, v4 = > 16:20); > somevar %>% gather(key = var, value =

[R] functions from 'base' package are not accessible

2017-08-24 Thread Eugeny Melamud
Hi all! The following code (executed in console)... somevar <- data.frame(v1 = 1:5, somestring = 6:10, v3 = 11:15, v4 = 16:20); somevar %>% gather(key = var, value = val, which(names(somevar) == "somestring"):length(somevar)) %>% head(2); throws... Error in which(names(somevar) ==

[R] [R-pkgs] arsenal v0.5.0: An Arsenal of 'R' Functions for Large-Scale Statistical Summaries

2017-08-16 Thread Heinzen, Ethan P.
I'm pleased to announce the release of the "arsenal" package v0.5.0 on CRAN (https://cran.r-project.org/package=arsenal). There are 4 items I want to mention: 1. arsenal is now on github: https://github.com/eheinzen/arsenal 2. ~10 bugs have been fixed in the latest release. 3.

Re: [R] functions similar to glm

2017-05-11 Thread BR_email
Bert: My question implies that I read (consulted) the reference, as I cited actual wordings of the reference. Apparently, you think I am lazy, and dumb, and like to waste R-helpers' time, as well as mine. Thanks for your reply, quite helpful. Bruce ~~ Bert

Re: [R] functions similar to glm

2017-05-11 Thread Bruce Ratner PhD
Dear David: Thank you for your excellent reply. Apparently, you are a in the know. Again, thanks. Bruce __ Bruce Ratner PhD The Significant Statistician™ (516) 791-3544 Statistical Predictive Analytics -- www.DMSTAT1.com Machine-Learning Data Mining -- www.GenIQ.net > On May 11,

Re: [R] functions similar to glm

2017-05-11 Thread David Winsemius
> On May 11, 2017, at 6:31 AM, Bruce Ratner PhD wrote: > > Bert: > Not clear to me. > Where mentioned are the functions similar to glm, if you please? The basis for the similarity was stated as having an available link function (and I suspected, an inverse as well.) I, for

Re: [R] functions similar to glm

2017-05-11 Thread Bruce Ratner PhD
Bert: Not clear to me. Where mentioned are the functions similar to glm, if you please? Bruce __ > On May 11, 2017, at 8:39 AM, Bert Gunter wrote: > > ?glmulti seems clear enough to me. If not, pls check the reference given > therein. > > Bert > >> On

Re: [R] functions similar to glm

2017-05-11 Thread Bert Gunter
?glmulti seems clear enough to me. If not, pls check the reference given therein. Bert On May 11, 2017 5:22 AM, "BR_email" wrote: > Thanks, Bert. I would expect the list to include, at least lm. The > reference states, "See Examples section." > But, there is nothing in that

Re: [R] functions similar to glm

2017-05-11 Thread BR_email
Thanks, Bert. I would expect the list to include, at least lm. The reference states, "See Examples section." But, there is nothing in that section or elsewhere!! Bruce Bert Gunter wrote: Probably? : All functions for which a link function of the response is modeled as a linear predictor of

[R] functions similar to glm

2017-05-11 Thread Bruce Ratner PhD
R-helpers: In the "glmulti" package, it states parameter fitfunction assumes functions similar to glm, but doesn't list them. What are the functions similar to glm that can be used with glmulti? Bruce __ R-help@r-project.org mailing list -- To

Re: [R] Using Fortran with MPI, RInside, and calling R functions

2016-02-27 Thread Erin Hodgess
Got it. thanks. On Sat, Feb 27, 2016 at 2:39 PM, peter dalgaard wrote: > Yeah, well, not much harm done, but once compilers are involved, r-devel > is usually preferred over r-help. > > -pd > > > On 27 Feb 2016, at 21:30 , Erin Hodgess wrote: > > >

Re: [R] Using Fortran with MPI, RInside, and calling R functions

2016-02-27 Thread peter dalgaard
Yeah, well, not much harm done, but once compilers are involved, r-devel is usually preferred over r-help. -pd > On 27 Feb 2016, at 21:30 , Erin Hodgess wrote: > > Sorry...thought it was ok since it uses RInside and Rcpp. > > > On Sat, Feb 27, 2016 at 2:15 PM, Jeff

Re: [R] Using Fortran with MPI, RInside, and calling R functions

2016-02-27 Thread Erin Hodgess
Sorry...thought it was ok since it uses RInside and Rcpp. On Sat, Feb 27, 2016 at 2:15 PM, Jeff Newmiller wrote: > This is off topic here... wrong audience. Read the Posting Guide. > -- > Sent from my phone. Please excuse my brevity. > > On February 27, 2016 12:00:23

Re: [R] Using Fortran with MPI, RInside, and calling R functions

2016-02-27 Thread Jeff Newmiller
This is off topic here... wrong audience. Read the Posting Guide. -- Sent from my phone. Please excuse my brevity. On February 27, 2016 12:00:23 PM PST, Erin Hodgess wrote: >Hello again. > >This time, I would like to add MPI to my Fortran program. Here are the

[R] Using Fortran with MPI, RInside, and calling R functions

2016-02-27 Thread Erin Hodgess
Hello again. This time, I would like to add MPI to my Fortran program. Here are the Fortran and C++ codes: program buzzy use iso_c_binding implicit none include '/opt/openmpi/include/mpif.h' integer :: rank,size,ierror,tag,status(MPI_STATUS_SIZE), i,np integer :: argc = 100

Re: [R] calling R functions from Fortran via RInside?

2016-02-26 Thread Erin Hodgess
/3.2/Rcpp/libs/ -lgfortran ./fcr Fortran Calling RInside This is C++, Hello World This is R, Hello World On Fri, Feb 26, 2016 at 10:38 PM, Erin Hodgess <erinm.hodg...@gmail.com> wrote: > Hello everyone. > > Hope you are having a nice weekend. > > Is it possible to

[R] calling R functions from Fortran via RInside?

2016-02-26 Thread Erin Hodgess
Hello everyone. Hope you are having a nice weekend. Is it possible to call R functions from a Fortran program, possibly via RInside and Rcpp, please? I tried the following that I saw on stack overflow. Here is the cpp: #include #include void helloR_(int argc, char *argv[], const char *msg

[R] Can we use all the functions of R in visual studio? The Rmath.dll and R.dll seems only contain a part of R functions

2015-12-04 Thread 李琥
Can we use all the functions of R in visual studio? The Rmath.dll and R.dll seems only contain a part of R functions Hi, I 'm going to use R functions in visual studio. I have investigated this problem for several days. There're guide about using R in embedded way,which use R.dll

Re: [R] Can we use all the functions of R in visual studio? The Rmath.dll and R.dll seems only contain a part of R functions

2015-12-04 Thread Erich Neuwirth
com/> > On 04 Dec 2015, at 13:38, 李琥 <081024...@fudan.edu.cn> wrote: > > Can we use all the functions of R in visual studio? The Rmath.dll and R.dll > seems only contain a part of R functions signature.asc Description: Message signed wi

[R] Why are integers coded as e.g. 2L in R functions?

2014-05-15 Thread Alexander Engelhardt
Hello R-help, I keep noticing R functions that don't compare integers like if(x == 2) but instead if(x == 2L) Is this a long integer? Also, when do the two notations have a different effect on the code? Thanks in advance, Alex __ R-help@r

Re: [R] Why are integers coded as e.g. 2L in R functions?

2014-05-15 Thread Rui Barradas
Hello, 2 is a double, 2L is an integer. Try class(2) [1] numeric class(2L) [1] integer Hope this helps, Rui Barradas Em 15-05-2014 11:54, Alexander Engelhardt escreveu: Hello R-help, I keep noticing R functions that don't compare integers like if(x == 2) but instead if(x == 2L

Re: [R] Why are integers coded as e.g. 2L in R functions?

2014-05-15 Thread arun
Hi Alex, May be this link helps: http://stackoverflow.com/questions/7014387/whats-the-difference-between-1l-and-1 A.K. On Thursday, May 15, 2014 6:55 AM, Alexander Engelhardt a...@chaotic-neutral.de wrote: Hello R-help, I keep noticing R functions that don't compare integers like   if(x

Re: [R] Why are integers coded as e.g. 2L in R functions?

2014-05-15 Thread Pascal Oettli
Hello, Probably you will get more complete answer, but you can compare class(1) with class(1L). Regards, Pascal On Thu, May 15, 2014 at 7:54 PM, Alexander Engelhardt a...@chaotic-neutral.de wrote: Hello R-help, I keep noticing R functions that don't compare integers like if(x == 2

Re: [R] Why are integers coded as e.g. 2L in R functions?

2014-05-15 Thread Prof Brian Ripley
On 15/05/2014 11:54, Alexander Engelhardt wrote: Hello R-help, I keep noticing R functions that don't compare integers like if(x == 2) but instead if(x == 2L) Is this a long integer? Also, when do the two notations have a different effect on the code? 2L is an integer. both

Re: [R] Why are integers coded as e.g. 2L in R functions?

2014-05-15 Thread Alexander Engelhardt
So in essence, it always provides the same output, but saves space and speed. Thanks everyone! - Alex On 05/15/2014 01:06 PM, Prof Brian Ripley wrote: On 15/05/2014 11:54, Alexander Engelhardt wrote: Hello R-help, I keep noticing R functions that don't compare integers like if(x == 2

Re: [R] Fwd: Difficulty in finding some R functions

2014-05-02 Thread Pascal Oettli
Hello, Maybe from here ? http://www.ie.boun.edu.tr/~hormannw/BounQuantitiveFinance/Thesis/SilaHALULU.pdf HTH Pascal On Fri, May 2, 2014 at 11:11 AM, prachi jain preciousprachi...@gmail.com wrote: Hey, I am trying to find some of the following functions in R packages: MLEt pt3

[R] Fwd: Difficulty in finding some R functions

2014-05-01 Thread prachi jain
Hey, I am trying to find some of the following functions in R packages: MLEt pt3 cormatrix2vector ParameterEst tCopula riskBT I have checked every package from this link: http://cran.r-project.org/web/packages/available_packages_by_name.html but is unable to find the above functions. These

Re: [R] Calling R functions into C# or C++

2014-02-15 Thread Yuvaraj
Hi, In my case I don't have any static data to be written in the .r file. I need to retrieve the data from my Database. later send the data and the .r script to R engine and do the execution. -- View this message in context: http://r.789695.n4.nabble.com/Calling-R-functions-into-C-or-C

[R] [R-pkgs] SPRINT 1.0.5 release (parallelised R functions for complex analysis and large data sets)

2014-01-30 Thread SPRINT Project
Dear All We have recently released SPRINT v1.0.5. SPRINT provides parallelised versions of existing R functions (e.g. statistical, machine learning, utility) that often exceed computational limits (speed or memory) with large or complex data sets. SPRINT 1.0.5 now: - runs on Mac OSX

Re: [R] Functions in formulae ??

2013-11-26 Thread Jeremy Clark
Dear All, In the following simple case I can't seem to get an improved fit, despite trying all of the control possibilities. As there seem to be no examples anywhere which show use of functions such as dnorm within a formula, and as I am not confident at all that my formula is correctly

Re: [R] Functions in formulae ??

2013-11-26 Thread Jeremy Clark
PLEASE REMOVE THIS MESSAGE AND PREVIOUS COPIES ! - Many thanks Dear All, In the following simple case I can't seem to get an improved fit, despite trying all of the control possibilities. As there seem to be no examples anywhere which show use of functions such as dnorm within a formula, and as

[R] Functions in formulae ??

2013-11-21 Thread Jeremy Clark
Dear All, In the following simple case I can't seem to get an improved fit, despite trying all of the control possibilities. As there seem to be no examples anywhere which show use of functions such as dnorm within a formula, and as I am not confident at all that my formula is correctly

Re: [R] Appropriateness of R functions for multicore

2013-08-23 Thread R. Michael Weylandt
On Mon, Aug 19, 2013 at 2:08 PM, Patrick Connolly p_conno...@slingshot.co.nz wrote: On Sat, 17-Aug-2013 at 05:09PM -0700, Jeff Newmiller wrote: | In most threaded multitasking environments it is not safe to | perform IO in multiple threads. In general you will have difficulty | performing IO

Re: [R] Appropriateness of R functions for multicore

2013-08-20 Thread Hopkins, Bill
: Jeff Newmiller Date: 8/19/2013 5:18 PM To: Patrick Connolly; Cc: Hopkins, Bill;r-help@R-project.org; Subject:Re: [R] Appropriateness of R functions for multicore I don't know... I suppose it depends how it fails. I recommend that you restrict yourself to using only the data that was passed

Re: [R] Appropriateness of R functions for multicore

2013-08-20 Thread Prof Brian Ripley
-support . Bill Hopkins Written using a virtual Android keyboard... -- Original message -- From: Jeff Newmiller Date: 8/19/2013 5:18 PM To: Patrick Connolly; Cc: Hopkins, Bill;r-help@R-project.org; Subject:Re: [R] Appropriateness of R functions for multicore I don't know... I

Re: [R] Appropriateness of R functions for multicore

2013-08-20 Thread Hadley Wickham
For tasks which don't involve I/O but fail with mclapply, how does one work out where the problem is? The handy browser() function which allows for interactive diagnosis won't work with parallel jobs. What other approaches can one use? ?dump.frames - interactive debugging after the fact.

Re: [R] Appropriateness of R functions for multicore

2013-08-19 Thread Patrick Connolly
of which core R functions are | safe for use with multicore? Of current interest, I have tried calling | read.table() via mclapply() to more quickly read in hundreds of raw | data files (I have a 24 core system with 72 GB running Ubuntu, a | perfect platform for multicore). There was a 40% failure

Re: [R] Appropriateness of R functions for multicore

2013-08-19 Thread Jeff Newmiller
systematic evaluation of which core R functions are | safe for use with multicore? Of current interest, I have tried calling | read.table() via mclapply() to more quickly read in hundreds of raw | data files (I have a 24 core system with 72 GB running Ubuntu, a | perfect platform for multicore

Re: [R] Appropriateness of R functions for multicore

2013-08-19 Thread Daniel Nordlund
Newmiller Sent: Monday, August 19, 2013 4:19 PM To: Patrick Connolly Cc: r-help@R-project.org; Hopkins,Bill Subject: Re: [R] Appropriateness of R functions for multicore I don't know... I suppose it depends how it fails. I recommend that you restrict yourself to using only the data

[R] Appropriateness of R functions for multicore

2013-08-17 Thread Hopkins, Bill
Has there been any systematic evaluation of which core R functions are safe for use with multicore? Of current interest, I have tried calling read.table() via mclapply() to more quickly read in hundreds of raw data files (I have a 24 core system with 72 GB running Ubuntu, a perfect platform

Re: [R] Appropriateness of R functions for multicore

2013-08-17 Thread Jeff Newmiller
) .OO#. .OO#. rocks...1k --- Sent from my phone. Please excuse my brevity. Hopkins, Bill bill.hopk...@level3.com wrote: Has there been any systematic evaluation of which core R functions are safe for use

Re: [R] Accidentally replacing core R functions

2013-08-05 Thread MacQueen, Don
One could get in the habit of typing conflicts() from time to time. Or perhaps conflicts(,TRUE)$.GlobalEnv Various ways of semi-automating this come to mind, such as putting it in one's .Rprofile file. -Don -- Don MacQueen Lawrence Livermore National Laboratory 7000 East Ave., L-627

[R] Accidentally replacing core R functions

2013-08-03 Thread Rguy
I sometimes find that a function I have defined has the same name as an R core function. In most cases I have no desire to redefine the core R function and would prefer to give my function a different name. The problem is that R lets users redefine its core functions without any warning. Is there

Re: [R] Accidentally replacing core R functions

2013-08-03 Thread Duncan Murdoch
On 13-08-03 3:47 AM, Rguy wrote: I sometimes find that a function I have defined has the same name as an R core function. In most cases I have no desire to redefine the core R function and would prefer to give my function a different name. The problem is that R lets users redefine its core

[R] syntactical meaning of fullstop in R functions

2013-07-12 Thread Kay Cichini
hello, what is the meaning of a fullstop in the below R-Ffunction (like in '.GADM') library(dismo) Lade nötiges Paket: raster Warnmeldungen: 1: Paket ‘dismo’ wurde unter R Version 2.15.3 erstellt 2: Paket ‘raster’ wurde unter R Version 2.15.3 erstellt getData function (name = GADM, download =

Re: [R] syntactical meaning of fullstop in R functions

2013-07-12 Thread Kay Cichini
just found it myself: in '.GADM' the leading period designates an internal function - the source can be viewed with: getAnywhere('.GADM') 2013/7/12 Kay Cichini kay.cich...@gmail.com hello, what is the meaning of a fullstop in the below R-Ffunction (like in '.GADM') library(dismo) Lade

Re: [R] syntactical meaning of fullstop in R functions

2013-07-12 Thread Rolf Turner
On 13/07/13 08:57, Kay Cichini wrote: just found it myself: in '.GADM' the leading period designates an internal function - the source can be viewed with: getAnywhere('.GADM') I think that's a bit misleading. In general, the names of functions (or other objects) which are internal to a

Re: [R] functions and matrices

2013-07-02 Thread Naser Jamil
poster: Begin forwarded message: From: David Winsemius dwinsem...@comcast.net Subject: Re: [R] functions and matrices Date: July 1, 2013 6:21:09 PM PDT To: Rolf Turner rolf.tur...@xtra.co.nz On Jul 1, 2013, at 5:09 PM, Rolf Turner wrote: On 02/07/13 11:37, David Winsemius wrote

[R] functions and matrices

2013-07-01 Thread Naser Jamil
Dear R-user, May I seek your help, please. I have two matrices, u and v, elements of which are some functions of x. I just want to multiply them and express the determinant of the resulting matrix as a function of x and of course, this is for some reason. Actually the original problem has more

Re: [R] functions and matrices

2013-07-01 Thread Rolf Turner
Basically R does things *numerically* and what you want to do really amounts to symbolic manipulation. Of course R could be cajoled into doing it --- see fortune(Yoda) --- but probably only with a great deal of effort and code-writing. OTOH you could quite easily write a function that would

Re: [R] functions and matrices

2013-07-01 Thread David Winsemius
On Jul 1, 2013, at 3:32 PM, Rolf Turner wrote: Basically R does things *numerically* and what you want to do really amounts to symbolic manipulation. Of course R could be cajoled into doing it --- see fortune(Yoda) --- but probably only with a great deal of effort and code-writing.

[R] Functions within functions - environments

2013-06-12 Thread Rik Verdonck
Dear list, I have a problem with nested functions and I don't manage to get it solved. I know I should be looking in environments, and I have tried a lot, but it keeps on erroring. An easy version of the problem is as follows: innerfunction-function() { print(paste(a, from inner

Re: [R] Functions within functions - environments

2013-06-12 Thread Rui Barradas
Hello, See the help page for parent.frame, and use its argument to go back to the frames of variables 'a' and 'b': innerfunction-function() { env1 - parent.frame(1) # for 'b' env2 - parent.frame(2) # for 'a' print(paste(env2$a, from inner function)) print(paste(env1$b,

Re: [R] Functions within functions - environments

2013-06-12 Thread William Dunlap
, June 12, 2013 10:42 AM To: r-help@r-project.org Subject: [R] Functions within functions - environments Dear list, I have a problem with nested functions and I don't manage to get it solved. I know I should be looking in environments, and I have tried a lot, but it keeps on erroring

Re: [R] functions with function inputs and optimisation

2013-05-11 Thread Uwe Ligges
On 10.05.2013 08:19, Sachinthaka Abeywardana wrote: Hi all, Would be great if you could help me get my head around the further arguemnts in the optim function. Let's say we have f and g as shown: f-function(x,a,b){(x-a)^2+b} optim(100,fn=f,gr=NULL,2,5) #the NULL is annoying

[R] functions with function inputs and optimisation

2013-05-10 Thread Sachinthaka Abeywardana
Hi all, Would be great if you could help me get my head around the further arguemnts in the optim function. Let's say we have f and g as shown: f-function(x,a,b){(x-a)^2+b} optim(100,fn=f,gr=NULL,2,5) #the NULL is annoying g-function(x,a){2*(x-a)} optim(100,fn=f,gr=g,2,5) 1. How does optim

Re: [R] A categorized list of R functions

2013-04-08 Thread Bretschneider SIG-R
Dear Rees Morrison, Re: (...) What additional code would create a table output, with the function name in the left column, sorted alphabetically within a pattern, and the pattern of the function in the column to the right. Users could then sort by those patterns, rename some to suit

Re: [R] functions as arguments to ther functions with inlinedocs

2013-01-25 Thread Jannis
Dear Duncan, dear Rui, thanks for your replies. You are correct regarding the additional paranthesis. I probably copied the wrong code. I, however, get this inlinedocs error with the correct version. After contacting the package maintainer I think this is now added to inlinedocs list of

[R] functions as arguments to ther functions with inlinedocs

2013-01-24 Thread Jannis
Dear R community, I have a problem when I use functions as default values for argumnents in other functions. When I use curly brackets { here, I can not create a package with inlinedocs. It will give me the error when using package.skeleton() in my package structure: Error in parse(text =

Re: [R] functions as arguments to ther functions with inlinedocs

2013-01-24 Thread Duncan Murdoch
On 24/01/2013 1:32 PM, Jannis wrote: Dear R community, I have a problem when I use functions as default values for argumnents in other functions. When I use curly brackets { here, I can not create a package with inlinedocs. It will give me the error when using package.skeleton() in my package

Re: [R] functions as arguments to ther functions with inlinedocs

2013-01-24 Thread Rui Barradas
Hello, Your function declaration has a syntax error, one left parenthesis too much. Corrected it would be dummyfunction - function(filters = function(x) {b = 0; x b} ){ # rest of code here filters # this returns a function, don't need return() } x - -5:5 f - dummyfunction() # this

Re: [R] functions as arguments to ther functions with inlinedocs

2013-01-24 Thread Rui Barradas
Hello, Sorry, it's RIGHT parenthesis. Rui Barradas Em 24-01-2013 18:54, Rui Barradas escreveu: Hello, Your function declaration has a syntax error, one left parenthesis too much. Corrected it would be dummyfunction - function(filters = function(x) {b = 0; x b} ){ # rest of code here

[R] Bayesian cluster analysis - R functions

2012-11-21 Thread KitKat
I want to try Bayesian cluster analysis. Someone suggested using package mcclust. Is there a website that says how to install mcclust or another appropriate Bayesian package? Including the appropriate R functions that I can follow? I am trying to get probability of membership for each individual

Re: [R] R functions to forecast using neural network

2012-07-26 Thread arun
...@yahoo.com To: arun smartpink...@yahoo.com Cc: r-help@r-project.org r-help@r-project.org Sent: Wednesday, July 25, 2012 2:01 PM Subject: Re: [R] R functions to forecast using neural network Hi, It's only for single hidden layer. Is there any other functions? Sajeeka Nanayakkara

Re: [R] R functions to forecast using neural network

2012-07-25 Thread Sajeeka Nanayakkara
Hi, It's only for single hidden layer. Is there any other functions?   Sajeeka Nanayakkara Cc: R help r-help@r-project.org Sent: Wednesday, July 25, 2012 1:03 AM Subject: Re: [R] R functions to forecast using neural network Hi, Possibly ?nnet package. A.K

Re: [R] R functions to forecast using neural network

2012-07-25 Thread Bert Gunter
Nanayakkara Cc: R help r-help@r-project.org Sent: Wednesday, July 25, 2012 1:03 AM Subject: Re: [R] R functions to forecast using neural network Hi, Possibly ?nnet package. A.K. - Original Message - To: r-help@r-project.org r-help@r-project.org

[R] R functions to forecast using neural network

2012-07-24 Thread Sajeeka Nanayakkara
Is there any R functions to forecast, using feedforward bakpropagation algorithm in neural networks?   Sajeeka Nanayakkara [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] R functions to forecast using neural network

2012-07-24 Thread arun
Hi, Possibly ?nnet package. A.K. - Original Message - From: Sajeeka Nanayakkara nsaje...@yahoo.com To: r-help@r-project.org r-help@r-project.org Cc: Sent: Tuesday, July 24, 2012 2:21 PM Subject: [R] R functions to forecast using neural network Is there any R functions to forecast

Re: [R] functions of vectors : loop or vectorization

2012-07-18 Thread Uwe Ligges
On 14.07.2012 00:41, Julien Salanie wrote: I have a read a lot about the benefits of vectorization in R. I have a program that takes almost forever to run. A good way to see if I have learned something ... My problem can be summarized like this : I have a nonlinear function of several variables

[R] functions of vectors : loop or vectorization

2012-07-15 Thread Julien Salanie
I have a read a lot about the benefits of vectorization in R. I have a program that takes almost forever to run. A good way to see if I have learned something ... My problem can be summarized like this : I have a nonlinear function of several variables that I want to optimize over one letting the

[R] Best way to search r- functions and mailing list?

2012-04-05 Thread Jonathan Greenberg
R-helpers: It looks like http://finzi.psych.upenn.edu/search.html has stopped spidering the mailing lists -- this used to be my go-to site for searching for R solutions. Are there any good replacements for this? I want to be able to search both functions and mailing lists at the same time.

Re: [R] Best way to search r- functions and mailing list?

2012-04-05 Thread R. Michael Weylandt
http://www.rseek.org/ perhaps. [Take a look at the tabs on the RHS after you do a search] Michael On Thu, Apr 5, 2012 at 11:36 AM, Jonathan Greenberg j...@illinois.edu wrote: R-helpers: It looks like http://finzi.psych.upenn.edu/search.html has stopped spidering the mailing lists -- this

Re: [R] Best way to search r- functions and mailing list?

2012-04-05 Thread Kevin Wright
Use rseek.org On Thu, Apr 5, 2012 at 10:36 AM, Jonathan Greenberg j...@illinois.eduwrote: R-helpers: It looks like http://finzi.psych.upenn.edu/search.html has stopped spidering the mailing lists -- this used to be my go-to site for searching for R solutions. Are there any good

Re: [R] Best way to search r- functions and mailing list?

2012-04-05 Thread Sarah Goslee
I usually use http://www.rseek.org On Thu, Apr 5, 2012 at 11:36 AM, Jonathan Greenberg j...@illinois.edu wrote: R-helpers: It looks like http://finzi.psych.upenn.edu/search.html has stopped spidering the mailing lists -- this used to be my go-to site for searching for R solutions.  Are there

Re: [R] Best way to search r- functions and mailing list?

2012-04-05 Thread Spencer Graves
The sos package is designed to search help pages only and sort the results by package. It includes a vignette describing how to get the results as an Excel file giving an efficient summary of which packages contain help pages of interest including the latest date updated, etc. I designed the

Re: [R] Best way to search r- functions and mailing list?

2012-04-05 Thread Sarah Goslee
sos is a great way to search help pages, agreed. But the question is about functions AND mailing list archives, which requires an online solution. (See subject line.) Sarah On Thu, Apr 5, 2012 at 12:56 PM, Spencer Graves spencer.gra...@prodsyse.com wrote: The sos package is designed to search

Re: [R] Best way to search r- functions and mailing list?

2012-04-05 Thread Spencer Graves
Hi, Sarah: You were correct: I failed to read the question with sufficient care. Thanks for your original reply and for the correction. Spencer On 4/5/2012 10:11 AM, Sarah Goslee wrote: sos is a great way to search help pages, agreed. But the question is about functions AND mailing list

[R] Default parameter values in R functions?

2012-04-02 Thread Michael
Hi all, I have a newbie question: If I have a function with the following documentation: ca.jo(x, type = c(eigen, trace), ecdet = c(none, const, trend), K = 2, spec=c(longrun, transitory), season = NULL, dumvar = NULL) Let's take type as an example... if I omit this parameter when calling the

Re: [R] Default parameter values in R functions?

2012-04-02 Thread R. Michael Weylandt
The first one -- this is implemented by match.arg(). Michael On Mon, Apr 2, 2012 at 5:30 PM, Michael comtech@gmail.com wrote: Hi all, I have a newbie question: If I have a function with the following documentation: ca.jo(x, type = c(eigen, trace), ecdet = c(none, const, trend), K =

Re: [R] Default parameter values in R functions?

2012-04-02 Thread Bert Gunter
Yes, it's a bit subtle. Argument matching is usually done through match.arg(), so see ?match.arg for an explanation.. (the first chosen). -- Bert On Mon, Apr 2, 2012 at 2:30 PM, Michael comtech@gmail.com wrote: Hi all, I have a newbie question: If I have a function with the following

Re: [R] Default parameter values in R functions?

2012-04-02 Thread Michael
Okay! Thank you both for your help! So it chooses the 1st one by default... Thank you! On Mon, Apr 2, 2012 at 4:43 PM, Bert Gunter gunter.ber...@gene.com wrote: Yes, it's a bit subtle. Argument matching is usually done through match.arg(), so see ?match.arg for an explanation.. (the

Re: [R] Default parameter values in R functions?

2012-04-02 Thread Marc Schwartz
Just to point out another reference, which is the R Language Definition, where in section 4.3.2: http://cran.r-project.org/doc/manuals/R-lang.html#Argument-matching entitled Argument Matching, there are some pointers to the use of match.arg(), leading you to the help page pointed to by Bert

[R] Calling R functions within C/C++

2012-01-05 Thread Ian Schiller
. In my Gibbs sampler I am using some basic R functions (like the rep function for example) and I was wondering if it was possible to call the R rep function (or any other existing R function) from within my C++ code. (There may be an equivalent of the rep function already in C++ but my main

Re: [R] Calling R functions within C/C++

2012-01-05 Thread Dirk Eddelbuettel
may be trivial, but my search so far have been unsuccessful. In my Gibbs sampler I am using some basic R functions (like the rep function for example) and I was wondering if it was possible to call the R rep function (or any other existing R function) from within my C++ code. (There may

Re: [R] Calling R functions within C/C++

2012-01-05 Thread Ian Schiller
I am not sure if you have found Rcpp yet I will take a look for sure! Thanks a lot! Ian -Original Message- From: Dirk Eddelbuettel [mailto:e...@debian.org] Sent: 5 janvier 2012 15:18 To: Ian Schiller Cc: r-help@r-project.org Subject: Re: [R] Calling R functions within C/C++ On 5

[R] Calling R functions from C++ under VS2005

2011-12-22 Thread Jawad Elomari
Hi, I'm trying to call some of R's statistical functions within my C++ code, developed under VS2005, but I can't seem to find out how to do it. I tried RInside and Rcpp, but they either don't work on Windows or with VS. Is there a way to do this? Appreciate the help. Regards,

  1   2   3   >