list to data frame; how to store short elements?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

list to data frame; how to store short elements?

Jim Porzak
This is programming style, best practices type of question.

When converting a list to a data frame (eg to use in ggplot), what is "best"
way to store descriptive elements?

For example, a survfit object mostly maps to a data frame, but I would also
like to carry along the type, call, etc.

I'm inclined to make these attributes of the data frame.

Any better technique?


TIA,
Jim Porzak
TGN.com
San Francisco, CA
www.linkedin.com/in/jimporzak
use R! Group SF: www.meetup.com/R-Users/

        [[alternative HTML version deleted]]

______________________________________________
[hidden email] 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.