[R] when to use & pros/cons of dataframe vs. matrix?
dmck at u.washington.edu
Thu Jun 27 20:32:54 CEST 2013
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
> PLEASE do read the posting guide http://www.R-project.org/posting-
> and provide commented, minimal, self-contained, reproducible code.
Don McKenzie, Research Ecologist
Pacific Wildland Fire Sciences Lab
US Forest Service
School of Environmental and Forest Sciences
University of Washington
More information about the R-help