Ya, thats a common one. also writing a struct to file and reading a struct from file. mostly in R if I have multiple returns, I'm just talking two or three values so i return a results vector. but thats ugly and prone to very bad things down the road.
On Sat, May 1, 2010 at 9:58 AM, Giovanni Azua <brave...@gmail.com> wrote: > > On May 1, 2010, at 6:48 PM, steven mosher wrote: > > I was talking with another guy on the list about this very topic. > > > > A simple example would help. > > > > first a sample C struct, and then how one would do the equivalent in R. > > > > In the end i suppose one want to do a an 'array' of these structs, or > list > > of the structs. > > Or like in my use-case ... I needed a c-like struct to define the type for > aggregating the data to return from a function. > > Best regards, > Giovanni [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.