Displaying 1 result from an estimated 1 matches for "sample_in".
Did you mean:
  sample_id
  
2004 Nov 29
1
data is getting corrupted
...000   0.00   0.0000   2.29  0.000     1   
20.00   0.00   0.00     0
And it's the same columns that become corrupt. I wanted to make sure I'm
using PROTECT correctly (the examples in the docs don't appear very
thourough) and included a snippet below,
SEXP r_write_sample_to_file( SEXP sample_in,
			     SEXP filename )
{
   unsigned long return_code;
   struct SAMPLE_RECORD *sample_ptr;
   SEXP ans;
   PROTECT( filename = AS_CHARACTER( filename ) );
   PROTECT(ans = allocVector(INTSXP, 1));
   PROTECT( sample_in = AS_LIST( sample_in ) );
   sample_ptr = build_sample_from_sexp( sample_i...