Using the .C() function in R, you can only pass vectors. Since R stores matrices columnwise as vectors anyhow, they can be passed to your C function as vectors (along with the number of rows in the matrix) and then accessed in familiar manner...

Using the .C() function in R, you can only pass vectors. Since R stores matrices columnwise as vectors anyhow, they can be passed to your C function as vectors (along with the number of rows in the matrix) and then accessed in familiar manner...

Using the .C() function in R, you can only pass vectors. Since R stores matrices columnwise as vectors anyhow, they can be passed to your C function as vectors (along with the number of rows in the matrix) and then accessed in familiar manner...

Functions include:1. efficient.portfolio compute minimum variance portfolio subject to target return2. globalMin.portfolio compute global minimum variance portfolio3. tangency.portf...

Suppose you have got used to Splus and want to switch to R software (why bother to change? R is free while Splus is not, fair enough?), what can you do? since there are many functions in S-PLUS that are missing in R, one way is to understand the functions and write your owns, working N hours without sleep...

I am running this blog as a kind of learning journal, so I can look up some of the solutions I come up when I run into problems on my way to R-mastery. I have some other R-related resources which may be of interest to other R-fellas.A much more structu...

I am running this blog as a kind of learning journal, so I can look up some of the solutions I come up when I run into problems on my way to R-mastery. I have some other R-related resources which may be of interest to other R-fellas.A much more structu...

e-mails with the latest R posts.

(You will not see this message again.)