when to use & pros/cons of dataframe vs. matrix?
Anika -- these are good questions and many on the list could expatiate on them. These erudite people are also busy, however, and that is why the R-news posting guide suggests that you study an introductory book on R before asking general questions.
On 27-Jun-13, at 11:26 AM, Anika Masters wrote:
When "should" I use a dataframe vs. a matrix? What are the pros and cons? If I have data of all the same type, am I usually better off using a matrix and not a dataframe? What are the advantages if any of using a dataframe vs. a matrix? (rownames and column names perhaps?)
______________________________________________ R-help at 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.
Don McKenzie, Research Ecologist Pacific Wildland Fire Sciences Lab US Forest Service phone: 206-732-7824 Affiliate Professor School of Environmental and Forest Sciences University of Washington