search for: load_tsets

Displaying 1 result from an estimated 1 matches for "load_tsets".

2003 Oct 03
1
allocating memory in a C module
...a number of formats. I have C code to parse these formats the results of which are generally integer arrays. I would like to utilize these modules in R rather than writing R code to read in these files (and also to learn about R extensions). Essentially what I want is to do something like this: load_tsets <- function(t,c,p) .C( "c_load_tsets", as.integer(t), as.integer(c), as.integer(p)) t,c,p should be R list objects, and empty when supplied to the function load_tsets. On return each one will contain a list of integers. Thus in the C function I need to allocate storage for the 3 array...