Displaying 20 results from an estimated 6000 matches similar to: "Writing new probability functions"
2006 Jan 31
2
Announce: Contributed Documentation
[Version fran??aise plus bas]
To the R community,
A quick word to announce the publication of my document "Introduction
?? la programmation en S". It is available in the French section of the
Contributed Documentation page of CRAN.
Many of the documents or books currently available on S-Plus and/or R
present the software in a statistical analysis context. My document
rather focuses
2005 Apr 20
1
Negative argument for head() and tail()
Dear R developers,
I'm a former APL programmer. In that language, the "take" (up arrow) and
"drop" (down arrow) operators were extensively used to, well, take and drop
elements of vectors. Functions head() and tail() are equivalents in R for the
"take" operator, but nothing seems to mimic the "drop" operator. I think it
would be useful.
For
2006 Sep 27
1
S3 methods for cbind/rbind
I created a type of object similar to a data frame. In some circumstances, It
needs special methods for "[" and "[<-" and rbind() (but not cbind()). Then I
found this in the cbind()/rbind() man page:
The method dispatching is _not_ done via 'UseMethod()', but by
C-internal dispatching. Therefore, there is no need for, e.g.,
'rbind.default'.
2009 May 20
0
New version of actuar
Dear useRs,
A new version of actuar is available since last Friday. This is mainly
a bugfix release. From the NEWS file:
Version 1.0-2
=============
USER-VISIBLE CHANGES
o m<foo>() and lev<foo>() now return Inf instead of NaN for infinite
moments. (Thanks to David Humke for the idea.)
BUG FIXES
o Non-ascii characters in one R source file prevented compilation of
the package in
2009 May 20
0
New version of actuar
Dear useRs,
A new version of actuar is available since last Friday. This is mainly
a bugfix release. From the NEWS file:
Version 1.0-2
=============
USER-VISIBLE CHANGES
o m<foo>() and lev<foo>() now return Inf instead of NaN for infinite
moments. (Thanks to David Humke for the idea.)
BUG FIXES
o Non-ascii characters in one R source file prevented compilation of
the package in
2010 May 31
1
Suggested tidying up
Package grDevices has a function cm() to convert from inches to centimeters. Its definition is:
cm <- function(x) 2.54*x
As far as I can tell, the function is not used anywhere in the R sources (I grepped for "cm(", "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
2005 Sep 07
1
Avoid Sweave from stopping on errors
Hi all,
Is there an option in Sweave to avoid it from stopping on a code chunk with an
error? (I 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
2008 Feb 14
1
Small encoding question
Dear developeRs,
Compilation of the latest version (0.9-5) of my actuar package fails
with r-release MacOS_X ix86 on CRAN; see
http://www.R-project.org/nosvn/R.check/r-release-macosx-ix86/actuar-00check.html
All errors come from accented letters in comments in latin-1 encoded
files (except hierarc.R which is in UTF-8, my bad). Encoding is
declared as latin-1 in DESCRIPTION.
The package
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
2006 Sep 17
2
Building the call of an arbitrary function
Hy all,
Is there a direct way to build the complete function call of an arbitrary
function?
Here's what I want to do. A function will build a function which will itself
call a probability density function for some law given in argument to the
first function:
> f("gamma", 1000)
will return, say,
function(x, shape, rate, scale = 1/rate)
dgamma(x + 1000, shape, rate,
2007 Jan 24
0
Easy to install GNU Emacs for Windows
[Sorry for cross-posting in an attempt to reach as many interested parties as
possible.]
Users (present or future) of GNU Emacs and ESS on Windows might be interested
in my distribution of an easy to install (read: with an installation wizard)
version of GNU Emacs 21.3 with the following additions:
* ESS 5.3.3 configured to work with the latest stable release of R;
* AUCTeX 11.84;
* Aspell
2005 Aug 29
5
Testing if all elements are equal in a vector/matrix
Is there a canonical way to check if 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
2008 Sep 15
0
New version of actuar
=== actuar: An R Package for Actuarial Science ===
We are pleased to announce the immediate availability of version 1.0-0
of actuar. This release follows publication of our papers in JSS (*)
and R News (**). From the NEWS file:
Version 1.0-0
=============
NEW FEATURES
o Improved support for regression credibility models. There is now
an option to make the computations with the
2008 Sep 15
0
New version of actuar
=== actuar: An R Package for Actuarial Science ===
We are pleased to announce the immediate availability of version 1.0-0
of actuar. This release follows publication of our papers in JSS (*)
and R News (**). From the NEWS file:
Version 1.0-0
=============
NEW FEATURES
o Improved support for regression credibility models. There is now
an option to make the computations with the
2009 Mar 03
0
New R mailing list: R-SIG-insurance
Dear useRs,
Over the last few years R has gained a significant momentum in the
insurance industry. Dedicated packages have been written, numerous
presentations given, courses held, businesses set up, and IT
departments convinced. ;-)
Therefore, together with Markus Gesmann of Lloyd's of London, we
created a Special Interest Group mailing list to discuss R usage in
actuarial
2008 May 02
2
Out of bounds negative index
Hi,
From the R Language Definition, Section 3.4.1:
"If i is positive and exceeds length(x) then the corresponding
selection is NA. A negative out of bounds value for i causes an error."
(This is also mentioned in S Programming, footnote of page 24.)
Can someone please provide an example triggering the error? Looking in
src/main/subscript.c I could not find exception handling for
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
2006 Jul 17
1
Patch to allow negative argument in head() and tail()
Dear developeRs (and other abuseRs ;-),
I would like to contribute a patch against functions head() and tail() of
package utils to allow for a negative 'n' argument. This allows to extract
all but the first/last 'n' elements/rows/lines of an object, similar to
the "drop" operator of APL. [1]
I put the patched head.R and head.Rd files, along with diff files in
2007 Jan 24
0
R packages for [K]Ubuntu now available
A quick note to "publicly advertise" the immediate availability of packages of
R 2.4.1 for Ubuntu Dapper Drake (6.06) and Edgy Eft (6.10), straight off
CRAN.
>From the README:
R packages for Ubuntu on i386 are available. The plans are to support at
least the latest Ubuntu release and the latest LTS release. Currently
(January 2007), these are Edgy Eft (6.10) and Dapper Drake
2007 Jul 02
1
Ubuntu package for 2.5.1
Hi all,
Just a quick note to bring to all Ubuntu users on i386 that the
packages for R 2.5.1 (and a few recommended packages needed
rebuilding) are now available from CRAN. Supported distributed are
Dapper (6.06), Edgy (6.10) and Feisty (7.04).
Please report any problems to me and/or this list.
---
Vincent Goulet, Associate Professor
?cole d'actuariat
Universit? Laval, Qu?bec