Displaying 1 result from an estimated 1 matches for "str_vec".
Did you mean:
cur_vec
2010 Nov 15
1
SEXP and slots
...er questions, please:
>>
>> 1. I've got a function written in C, named "my_c_function". In my R
>> code I call this function, passing to it an INTSXP and a STRSXP,
>> respectively:
>>
>> result <- .Call("my_c_function", int_vector, str_vector)
>>
>> The prototype of "my_c_function" is:
>>
>> SEXP my_c_function(SEXP int_vec, SEXP str_vec);
>>
>> Within my_c_function I am able to extract the values within the integer
>> vector, e.g. I can grab the first value with these lines of co...