Displaying 20 results from an estimated 4000 matches similar to: "Passing Inf from R to C using .C("myLibC"..."
2008 Apr 22
2
optimization and gradient
Dear all,
I am using the functions 'optim' and 'nlminb'. For both, you can provide
a function which computes the gradient of the objective function (to
enhance speed and precision). In my case, both the objective function
and the gradient take time to be computed and share many common
computations (similar matrix, products, etc...). Therefore, I have to
compute these
2008 May 27
4
package functions documentation
Dear all,
I am currently creating a package and writing the documention files for
some functions (the main functions). When using R CMD check myPackage, I
get a warning message indicating that some of my functions are not
documented. How can I get rid of this problem? Of course, I don't want
to document every function in the package...
Thanks for your help.
--
David Ardia
H-building, room
2008 Apr 25
1
No rule to make target 'R/Copy'
Dear all,
I am currently building a package with C code (in scr folder).
Everything was ok, but now, I get the following error message when
compiling the package using R CMD INSTALL:
make[2]: *** No rule to make target 'R/Copy', needed in [...]
What does that mean? I can still compile other packages containing C
code, but not that one. No 00UNLOCK directory has been created . I am on
2008 Jun 23
0
AdMit 1.00-02
'AdMit' 1.00-02 is a contributed R package which provides functions to
perform the fitting of an
adaptive mixture of Student-t distributions to a target density through
its kernel function.
The mixture approximation can then be used as the importance density
in importance sampling or as the candidate density in the
Metropolis-Hastings algorithm to
obtain quantities of interest for the
2009 Jan 26
0
AdMit version 1-01.01
Dear all,
The new version of AdMit (version 1.01-01) is now available from CRAN.
SUMMARY
The package provides functions to perform the fitting of an adaptive
mixture of Student-t distributions to a target density through its
kernel function. The mixture approximation can then be used as the importance
density in importance sampling or as the candidate density in the
Metropolis-Hastings
2009 Jan 26
0
AdMit version 1-01.01
Dear all,
The new version of AdMit (version 1.01-01) is now available from CRAN.
SUMMARY
The package provides functions to perform the fitting of an adaptive
mixture of Student-t distributions to a target density through its
kernel function. The mixture approximation can then be used as the importance
density in importance sampling or as the candidate density in the
Metropolis-Hastings
2009 Mar 03
2
R - MATLAB apply like function
Dear all,
I very often use the R function "apply", for speedup purposes. I am now also using MATLAB, and would like to use the same kind of function.
I have already asked MATLAB people, and the answer is : "vectorize"... but of course, this is not always possible. So, instead of using
a FOR loop all the time, I tried using the bsxfun. So you R people, who might also use MATLAB,
2005 Aug 11
2
question
Hi,
I have a problem with R, after an update:
this piece of code:
cat("creating resolver data frame\n");
dfG<-cbind(dfG,2^(RGN$G))
dfR<-cbind(dfR,2^(RGN$R))
suddenly, creates values to inf.
Is the syntax changed for the ^ symbol in the latest R downloadable version?
Kind regards, wilfred
--
Dr. Ir. Wilfred Van IJcken
Labmanager Genomics
Erasmus Center for Biomics,
2003 Mar 25
4
R software for Hastie book
Does anyone know whether there is an R version of the S-Plus
software that can be downloaded from the website of the book
Elements of Statistical Learning by Hastie, Tibshirani and
Friedman?
Rob Potharst
--
**********************************************************
Dr. Rob Potharst
Lecturer in Computer Science
Erasmus University email: potharst at few.eur.nl
P.O. Box 1738
2004 Apr 22
2
password change, domain not available
Dear Herman,
We had the same problems over here.
The problem seems to be related to Windows Hotfix KB828741.
Removing the hotfix through the control panel solved it for us.
Greetz,
Jerome Borsboom
>>BTW, i use samba 302 & 303 pre2..
>>
>>Thursday, April 22, 2004, 2:33:16 PM, you wrote:
>>
>>CBM> well the subject tell's it..
>>
>>CBM>
2006 Oct 10
0
Haplo.Stats: error (recursive default argument reference)
Dear colleagues,
I face a problem doing haplotype analyses with haplostats: when I use
the haplo.em function, the programme gives an error message because of
'recursive default argument reference.' I am not able to figure out what
this means. Could you perhaps help me?
The full output is the following:
> library(haplo.stats)
>
2005 Oct 18
1
Memory problems with large dataset in rpart
Dear helpers,
I am a Dutch student from the Erasmus University. For my Bachelor thesis I
have written a script in R using boosting by means of classification and
regression trees. This script uses the function the predefined function
rpart. My input file consists of about 4000 vectors each having 2210
dimensions. In the third iteration R complains of a lack of memory,
although in each iteration
2008 May 08
1
Reading multiple tables from file
Dear R-users,
I have output files having a variable number of tables
in the following format:
-------------
1
Pietje
I1 I2 Value
1 1 0.11
1 2 0.12
2 1 0.21
2
Jantje
I1 I2 I3 Value
1 1 1 0.111
3 3 3 0.333
...
-------------
Would there be an easy way
of turning this into (a list of) data.frames
with names Pietje, Jantje
and variables I1,I2,...Value?
(I1,I2 are string or categorical,
2007 Aug 01
2
Simple table with frequency variable
Hallo,
Im trying to find out how to tabulate frequencies
of factors when the data have a frequency variable.
e,g:
i<-rep(1:5,2)
j<-rep(1:2,5)
N<-10*i+j
table(i,j) gives a table of ones
as each combination occurs only once.
How does one get a table with the corresponding N's?
Thanks!
Gerrit.
--
Gerrit Draisma
Department of Public Health
Erasmus MC, University Medical Center
2009 Dec 08
1
extraction of sub-matrix by name
Dear all,
sorry to bother you with potentially known issue --
we have noticed that if we select data frame rows by rownames, we get
some results back if the match can be done unambiguously, though the
match is not perfect (see example), e.g. x{"2",] will return a row if
there is a unique row with name starting with "2" (but may be
"2375745"!)
is that a
2009 Jun 18
2
Argument as.integer(NA) to a function C
Hi the list,
I am writing a R function that call a C function. The C function needs
integers but I do not manage to give a NA integer as argument :
--- C code ---
void essai(int *t){
Rprintf("\nT0=%i T1=%i T2=%i T3=%i",t[0],t[1],t[2],t[3]);
}
--- R ---
boub <- c(1,2,3,4)
.C("pour",as.integer(boub),NAOK=TRUE)
# T0=1 T1=2 T2=3 T3=4[[1]]
# [1] 1 2 3 4
boub <-
2009 Oct 01
0
DEoptim 2.0-0
Dear All,
We are happy to announce the release of the new version of DEoptim
(version 2.0-0) which is now available from CRAN.
The DEoptim package [3] performs Differential Evolution (DE) minimization,
a genetic algorithm-based optimization technique [2,3]. This allows robust
minimization over a continuous (bounded or not) domain.
The new DEoptim function calls a C implementation of the DE
2009 Oct 01
0
DEoptim 2.0-0
Dear All,
We are happy to announce the release of the new version of DEoptim
(version 2.0-0) which is now available from CRAN.
The DEoptim package [3] performs Differential Evolution (DE) minimization,
a genetic algorithm-based optimization technique [2,3]. This allows robust
minimization over a continuous (bounded or not) domain.
The new DEoptim function calls a C implementation of the DE
1997 Aug 25
2
R-alpha: eigen and batch
Batch:
Putting q(save=F) at the end of my file does not work in my
context because I can no longer source the file without quitting. I
have that quit statement in my .First so that I always quit that way
interactively. The problem is that it is ignored in batch.
eigen:
The crash occurs on my 586 running Red Hat Linux 2.0.27 but not on
my son's 486 running SLackware Linix 2.0.29. We both
2007 Dec 31
2
the woes of NA
Joyful.
I'm adapting a FORTRAN 77 package for use with R. Pretty
straightforward.
Except for a glitch it took me some time to figure out. This existing
package has subroutines which have parameters called "NA". So, I called
subroutines like
bnodes <- function(n, lst, lptr, lend, nodes, nb, na, nt)
{
ensure.all.numeric(list(n, lst, lptr, lend, nodes, nb, n.a, nt),