Displaying 1 result from an estimated 1 matches for "r_string".
Did you mean:
d_string
2002 May 02
1
Returning a dataframe from a C function (How) ?
I'm writing an R extension. The language I'm using is ANSI C. One of the
functions I'm writing will accept a string and return a dataset as a
dataframe. i.e the prototype will be of the form:
dataframe foo(R_String)
{
}
Does anyone have any skeleton code for such a function, i.e. one that
receives an R "string" and returns a dataset as a dataframe ?
The main concerns I have are:
1. Handling the "R_String" in C (i.e. converting it into a char*)
2. Creating an R dataframe in C
Any hel...