Re: [Rd] Data table in C

2006-11-17 Thread Byron Ellis
Data frames are column, not row oriented so you actually want your list-o-lists to be $type [1] "BID" "BID" "BID" $price [1] 0.6178 0.6717 0.6717 $volume [1] 3e+06 3e+06 1720 so you'd create a VECSXP of length 3 and then three data vectors (also of length 3 in this case). One STRSXP and two

Re: [Rd] Data table in C

2006-11-17 Thread Seth Falcon
"Tom McCallum" <[EMAIL PROTECTED]> writes: > After getting one list done, I am now struggling to form a data frame in C. > > I tried to do a list of lists which gives me : > > $ > $[[1]] > [1] "BID" > > $[[2]] > [1] 0.6718 [snip] > > and then as.data.frame them in R but this gives me One approach