Displaying 1 result from an estimated 1 matches for "do_rowscol".
Did you mean:
do_rowscols
2001 Sep 27
1
Passing an R matrix to a C program
Hello,
I'm starting to write a C function that gets
a list and a matrix from R. I'm using .Call
because I've undertood that this is recommended
to handle lists (am I wrong?). My problem is that I
can pass the matrix as a vector, but not as a 2D array.
For example, in the following simple C program:
#include <R.h>
#include <Rdefines.h>
SEXP printListElement(SEXP list,