Skip to content
Back to formatted view

Raw Message

Message-ID: <34DE058D-65AF-4DD0-9AF6-1AD467A46DBA@u.washington.edu>
Date: 2013-06-27T18:32:54Z
From: Don McKenzie
Subject: when to use & pros/cons of dataframe vs. matrix?
In-Reply-To: <CAOQRPaas0YJ1XvKTaRj7d5G1osWMiWR8RCnq55p1B_3R1rtK5A@mail.gmail.com>

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