Michael Friendly <friendly <at> yorku.ca> writes:

> 
> For a function that takes an argument as a list of lists of parameters, 
> I'd like to be able to convert that
> to a data.frame and vice versa, but can't quite figure out how.
> 

  [snip data]




pats.df <- do.call("rbind",pats)
pats2 <- apply(pats.df,1,as.list)
identical(pats,pats2)


  Ben Bolker

______________________________________________
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.

Reply via email to