Hi, All,
I am getting some funny results trying to use R's built in
distribution functions.
In R:
> dgamma(4.775972,1.37697964405418, 0.106516604930466)
[1] 0.05585295
> dgamma(4.775972,1.37697964405418, 0.106516604930466,TRUE) ### THIS IS JUST
> WRONG!
[1] 0.01710129
> log(dgamma(4.775972,1.37
Hello,
Quick question.
I have written a C function - I would like to make it return two vectors to
the R environment - one STRSXP vector, and one INTSXP vector. Is this
possible/ easy to do using the API?
I looked, but could not find the answer to this question in the "Writing R
Extensions" gu
Hi,
Trying to decrease the size of a SEXP variable without reassigning
values individually in a loop.
So far, I've tried using Realloc, as the follow source demonstrates:
SEXP dothis() {
SEXP Rblah;
PROTECT(Rblah = NEW_INTEGER(6));
int* blah = INTEGER(Rblah);
blah
gt; realloc and is not intended to resize SEXP structures -- it is used to
> resize user-controlled memory (which is generally not created by
> allocVector/INTEGER).
>
> You would expect a call like:
>
> int * val;
> ...
> Realloc(val, 20, int);
>
> Best,
>
cbind/ rbind/ data.frame functions are very convenient for merging
vectors of different types into a single data frame, but take quite a
bit of time to execute on larger data sets.
Is it possible to speed these up a bit?
What functions do you use instead?
Thanks & regards,
Charles
_
Hi, List,
Sorry in advance if this turns out to be a stupid question -- I've
been trying to work it out for awhile, and I don't have any new ideas
-- I'm very new to R documentation/ LATEX.
I am running "R CMD check " on a package that I am trying to write;
the only warning is:
* checking for mis
Dear R-devel,
I am writing a package that needs some C++ functions from an external
SDK (Affymetrix fusion). The same functions are already compiled into
another package (affxparser).
Can I dynamically link to the compiled code in affxparser, rather than
re-compiling these separately into my pac
share its
C functions?
I apologize in advance if this is something obvious that I am missing!
Thanks, and warmest regards,
Charles
On Sat, Oct 25, 2008 at 3:15 PM, Dirk Eddelbuettel <[EMAIL PROTECTED]> wrote:
>
> On 25 October 2008 at 16:05, Charles Danko wrote:
> | Dear R-devel
Dear list,
Thanks very much for all of the detailed responses! I am beginning to
understand how all of this can work, and learning quite a bit about
the C language in the process!
Can this be applied to either C++ classes or to member functions of a
class? Please forgive my lack of general C/C