Re: [R] Writing own simulation function in C

2010-03-17 Thread TheSavageSam
Thanks for the huge help. If you could give me a reference(a link, book, etc.) to a good manual of how to use and manipulate and use SEXP variables in C (considering creating R libraries). -- View this message in context:

Re: [R] Writing own simulation function in C

2010-03-17 Thread Sharpie
TheSavageSam wrote: Thanks for the huge help. I have learned a lot and been able to start writing my own code. If you could give me a reference(a link, name of a book, etc.) to a good manual of how to use and manipulate and use SEXP variables in C (considering creating R libraries) it

Re: [R] Writing own simulation function in C

2010-03-17 Thread Phil Spector
I've written a handout that talks about calling C from R and calling R from C using both the .C and .Call methods. (It also shows similar information for matlab -- my apologies.) You can find it here: http://www.stat.berkeley.edu/classes/s243/calling.pdf

Re: [R] Writing own simulation function in C

2010-03-07 Thread Romain Francois
On 03/06/2010 05:51 AM, Sharpie wrote: TheSavageSam wrote: I am wishing to write my own random distribution simulation function using C programmin language(for speed) via R. I am familiar with R programming but somewhat new to C programming. I was trying to understand Writing R extensions

[R] Writing own simulation function in C

2010-03-05 Thread TheSavageSam
I am wishing to write my own random distribution simulation function using C programmin language(for speed) via R. I am familiar with R programming but somewhat new to C programming. I was trying to understand Writing R extensions -guide and its part 6.16, but I found it hard to

Re: [R] Writing own simulation function in C

2010-03-05 Thread stephen sefick
Look in the sources of runif for the C code? On Fri, Mar 5, 2010 at 3:54 PM, TheSavageSam jujok...@jyu.fi wrote: I am wishing to write my own random distribution simulation function using C programmin language(for speed) via R. I am familiar with R programming but somewhat new to C

Re: [R] Writing own simulation function in C

2010-03-05 Thread Sharpie
TheSavageSam wrote: I am wishing to write my own random distribution simulation function using C programmin language(for speed) via R. I am familiar with R programming but somewhat new to C programming. I was trying to understand Writing R extensions -guide and its part 6.16, but I found