Skip to content
Back to formatted view

Raw Message

Message-ID: <Pine.LNX.4.33.0107200943480.23713@hymn01.u.washington.edu>
Date: 2001-07-20T16:43:48Z
From: Thomas Lumley
Subject: R extension in C
In-Reply-To: <02d501c11095$ee6d0c20$48d210ac@jecw2k1>

On Thu, 19 Jul 2001, Joe Conway wrote:

> Hello,
> 
> I'm trying to modify the RPgSQL R extension, in part as a learning
> experience on how R is extended. Specifically I'm writing a new function
> which attempts to create a data.frame in C, and pass it back to R. The key
> word is "attempts" in this last sentence. I haven't been able to get it
> right, and I've not found many good examples or a comprehensive description
> of the requirements. The closest I've found is do_modelframe in model.c and
> the "Writing R Extensions" document. They were a good start, but didn't
> quite get me there. Can anyone point me toward some other
> examples/documents?

Some of the functions in the 'foreign' package create data frames entirely in C, eg read.dta()
  
      -thomas



-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._