search for: goulet

Displaying 20 results from an estimated 150 matches for "goulet".

2005 Aug 29
5
Testing if all elements are equal in a vector/matrix
...f all elements of a vector or matrix are the same? Solutions below work, but look hackish to me. > x <- rep(1, 10) > all(x == x[1]) # == operator does not provide for small differences [1] TRUE > isTRUE(all.equal(x, rep(x[1], length(x)))) # ugly [1] TRUE Best, Vincent -- Vincent Goulet, Associate Professor ??cole d'actuariat Universit?? Laval, Qu??bec Vincent.Goulet at act.ulaval.ca http://vgoulet.act.ulaval.ca
2006 Jan 31
2
Announce: Contributed Documentation
...ond programming language. Therefore, it contains a good number of example scripts and exercises. If there is any interest, I might prepare an English version of the document. The document is published under the GNU Free Documentation License. In the hope the document may be useful, -- Vincent Goulet, Associate Professor ??cole d'actuariat Universit?? Laval, Qu??bec Vincent.Goulet at act.ulaval.ca http://vgoulet.act.ulaval.ca ===== ===== ===== ===== ===== ?? la communaut?? francophone de R, Un petit mot pour annoncer la publication de mon document ??Introduction ?? la programma...
2005 Apr 20
1
Negative argument for head() and tail()
...For example, > head(x, -1) would drop the first element of a vector and > tail(x, -length(x)) the last one. Is there any interest for such an extension? I would be very willing to contribute a patch, although I don't have much experience in doing so. Best regards, -- Vincent Goulet, Associate Professor ?cole d'actuariat Universit? Laval, Qu?bec Vincent.Goulet@act.ulaval.ca http://vgoulet.act.ulaval.ca
2006 Sep 17
2
Building the call of an arbitrary function
...tice that the arguments of the output function are those of dgamma().) I tried all sorts of combinations of call(), formals(), args() et al. to no avail. But then, I avoided, so far, to build the whole thing as a character string. Would it be the only option? Thanks for any help. -- Vincent Goulet, Professeur agr?g? ?cole d'actuariat Universit? Laval, Qu?bec Vincent.Goulet at act.ulaval.ca http://vgoulet.act.ulaval.ca
2006 Sep 27
1
S3 methods for cbind/rbind
...herefore, there is no need for, e.g., 'rbind.default'. This seems to imply I cannot add my own method. Is there 1) a workaround to and 2) a rationale for this? (Other than creating a generic Rbind() or whatever, that is.) I'm using S3 methods. Thanks in advance! -- Vincent Goulet, Associate Professor ?cole d'actuariat Universit? Laval, Qu?bec Vincent.Goulet at act.ulaval.ca http://vgoulet.act.ulaval.ca
2006 Jul 05
2
Compilation of R packages
Le Mercredi 5 Juillet 2006 09:41, Dirk Eddelbuettel a ?crit?: > Salut Vincent, > > On 4 July 2006 at 23:27, Vincent Goulet wrote: > | I'm currently following your procedure suggested on R-SIG-Debian > | (https://stat.ethz.ch/pipermail/r-sig-debian/2006-June/000095.html) to > | compile and install the latest version of R on Kubuntu. It is my > | understanding that I can't just use Debian unstable'...
2009 May 05
2
Bristol mirror GPG problem ubuntu repository
...bristol UK mirror. When my source.list has this line: deb http://www.stats.bris.ac.uk/R/bin/linux/ubuntu/ intrepid/ On an "apt-get update" you get this: W: GPG error: http://www.stats.bris.ac.uk intrepid/ Release: The following signatures were invalid: BADSIG D67FC6EAE2A11821 Vincent Goulet <vincent.goulet at act.ulaval.ca> Whereas if I use another mirror e.g.: deb http://cran.cnr.berkeley.edu/bin/linux/ubuntu/ intrepid/ I don't get such an error. It could be a problem this end but I think it is more likely that something is going wrong with the GPG signing at bristol....
2005 Sep 07
1
Avoid Sweave from stopping on errors
...purposefully want to include code with an error in class notes.) I suspect the answer is "no" and that I will be pointed to options("error"). That'd be fine, but which error parameter will just "do nothing" in case of an error? Thanks in advance! -- Vincent Goulet, Associate Professor ??cole d'actuariat Universit?? Laval, Qu??bec Vincent.Goulet at act.ulaval.ca http://vgoulet.act.ulaval.ca
2010 May 31
1
Suggested tidying up
..., "cm)" and ", cm".) I did not check for all packages on CRAN, though. May I propose to remove this apparently useless function from the sources? [I stubbled upon this function because my package actuar also has a cm() function that masks the one from grDevices.] Dr. Vincent Goulet Full Professor ?cole d'actuariat, Universit? Laval, Qu?bec vincent.goulet at act.ulaval.ca http://vgoulet.act.ulaval.ca
2008 Feb 14
1
Small encoding question
...e: fr_CA.UTF-8/fr_CA.UTF-8/fr_CA.UTF-8/C/fr_CA.UTF-8/fr_CA.UTF-8 attached base packages: [1] stats utils datasets grDevices graphics methods base other attached packages: [1] CarbonEL_0.1-4 loaded via a namespace (and not attached): [1] tools_2.6.2 Thanks in advance! --- Vincent Goulet, Associate Professor ?cole d'actuariat Universit? Laval, Qu?bec Vincent.Goulet at act.ulaval.ca http://vgoulet.act.ulaval.ca
2008 May 02
2
Out of bounds negative index
...g in src/main/subscript.c I could not find exception handling for |i| > length(x), unless the negative subscript is mixed with NAs. In other cases, out of bounds negative indexes just seem silently ignored. Did I missed or misinterpreted something, here? Thanks in advance --- Vincent Goulet, Associate Professor ?cole d'actuariat Universit? Laval, Qu?bec Vincent.Goulet at act.ulaval.ca http://vgoulet.act.ulaval.ca
2005 Feb 23
3
and [ESS] Starting ESS
Dear R People: I have finally seen the error of my ways and have decided to use ESS for R and S + stuff. However, I have a question right from the beginning. I'm somewhat confused by the installation instructions. Do I install XEMACS or ESS first, please? Windows XP R Version 2.0.1 (S + 6.2) Thanks so much! Sincerely, Laura Holt mailto: lauraholt_983 at hotmail.com
2008 Apr 12
4
HOW TO AVOID LOOPS
> Looking for a simple, effective a minimum execution time solution. > > For a vector as: > > c(0,0,1,0,1,1,1,0,0,1,1,0,1,0,1,1,1,1,1,1) > To transform it to the following vector without using any loops: > (0,0,1,0,1,2,3,0,0,1,2,0,1,0,1,2,3,4,5,6) > Appreciate any suggetions. [[alternative HTML version deleted]]
2007 Dec 18
2
bug in r-base (PR#10521)
Full_Name: marco zamboni Version: no R version OS: ubuntu gusty Submission from: (NULL) (87.9.174.188) I have just finish to install gusty ubuntu on my AMD sempron. I would like to: $ sudo apt-get install r-base but ... I seguenti pacchetti hanno dipendenze non soddisfatte: r-base: Dipende: r-base-core (>= 2.6.1-1gutsy0) ma 2.5.1-1 sta per essere installato Dipende:
2007 Dec 18
2
bug in r-base (PR#10521)
Full_Name: marco zamboni Version: no R version OS: ubuntu gusty Submission from: (NULL) (87.9.174.188) I have just finish to install gusty ubuntu on my AMD sempron. I would like to: $ sudo apt-get install r-base but ... I seguenti pacchetti hanno dipendenze non soddisfatte: r-base: Dipende: r-base-core (>= 2.6.1-1gutsy0) ma 2.5.1-1 sta per essere installato Dipende:
2009 Jun 16
1
Testing if all elements are equal in a vector/matrix
...Doran The documentation for isTRUE reads 'isTRUE(x)' is an abbreviation of 'identical(TRUE,x)' so actually Vincent's solutions is "cleaner" than using identical :) Cheers Francisco />From: "Doran, Harold" <HDoran@air.org> / />To: <vincent.goulet@act.ulaval.ca>, <r-help@stat.math.ethz.ch> / />Subject: Re: [R] Testing if all elements are equal in a vector/matrix / />Date: Mon, 29 Aug 2005 15:49:20 -0400 / /> / >See ?identical <http://tolstoy.newcastle.edu.au/R/help/05/08/11201.html#11202qlink1> /> / />-----...
2007 Jun 06
3
C function with unknown output length
...yself clearer, we have a C function that computes probabilities until their sum gets "close enough" to 1. Hence, the number of probabilities is not known in advance. I would like to have an idea what is the best way to handle this situation in R. Thanks in advance! --- Vincent Goulet, Associate Professor ?cole d'actuariat Universit? Laval, Qu?bec Vincent.Goulet at act.ulaval.ca http://vgoulet.act.ulaval.ca
2005 Jul 20
2
Issues with convolve
...[1] 39 > fsc[1:10] # these should be 0 [1] 4.049552e-19 3.345584e-19 4.126913e-19 3.351211e-19 2.758626e-19 [6] 3.530111e-19 2.735041e-19 2.376711e-19 2.591287e-19 3.196405e-19 > sum(fsc) # no impact on the sum [1] 1 -- Vincent Goulet, Associate Professor ??cole d'actuariat Universit?? Laval, Qu??bec Vincent.Goulet at act.ulaval.ca http://vgoulet.act.ulaval.ca
2006 Oct 13
1
2.4.0 packages for (K)Ubuntu
Hi, May I ask what are the plans for R 2.4.0 packages for (K)Ubuntu? Will Christian yet again agree to provide packages as he did for 2.3.1? I will renew my offer to contribute, if needed. Thanks in advance! -- Vincent Goulet, Associate Professor ?cole d'actuariat Universit? Laval, Qu?bec Vincent.Goulet at act.ulaval.ca http://vgoulet.act.ulaval.ca
2020 Jun 26
1
"R CMD Sweave --driver=..." woes
...driver', if used, is added to the vector of arguments of ''buildVignette' without being named. It ends up being passed to argument 'dir', hence rhe error. I believe the simple patch below should fix the issue, but I wasn't able to test it. Hope this helps. v. Vincent Goulet Professeur titulaire ?cole d'actuariat, Universit? Laval Index: src/library/utils/R/Sweave.R =================================================================== --- src/library/utils/R/Sweave.R (revision 78746) +++ src/library/utils/R/Sweave.R (working copy) @@ -516,7 +516,7 @@ do_exi...