What do you want to do with the data? Are you just storing it to read in it later? Have you looked at 'save/load'? If you want a character representation, try 'dput'; this can be read back in with 'source'. So it all depends on what you are planning to do with it.
On Mon, Aug 11, 2008 at 4:14 PM, <[EMAIL PROTECTED]> wrote: > I have a list > > List(Sku=" ", Shape=1, Scale=3, DayOfYear=daylist) > Note: picture daylist as c(2,3,4,3) it is a list with variable length. > > Then I have a list of lists > > al <- c(al, List(List(Sku=" ", Shape=1, Scale=3, DayOfYear=daylist)) > Note: same comment on daylist as above. > > So far this creates a list of lists just how I want it. If I do al[1] I get > each member and the variable length list 'daylist'. > > Now I want to export this list of lists: > > write.table(mlist, "SkuInfo.dat", row.names = FALSE, sep=",") > > But I get an error that the list lengths are not equal. The only member of > this list that has a variable length would be DayOfYear > > How can I output this list of lists when each element list contains a > variable length list? > > Thank you. > > Kevin > > ______________________________________________ > 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. > -- Jim Holtman Cincinnati, OH +1 513 646 9390 What is the problem that you are trying to solve? ______________________________________________ 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.