Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Simple view of R objects

Simple view of R objects

Small handful of slides I refer to while live coding in STAT 545
http://stat545.com

Jennifer (Jenny) Bryan

September 22, 2016
Tweet

More Decks by Jennifer (Jenny) Bryan

Other Decks in Programming

Transcript

  1. Simple view Technically correct R view mode class typeof character

    character character character logical logical logical logical numeric numeric integer or numeric integer or double factor numeric factor integer a simple view of simple R objects that will get you pretty far
  2. a simple view of simple R objects that will get

    you pretty far Simple view Technically correct R view mode class typeof character character character character logical logical logical logical numeric numeric integer or numeric integer or double factor numeric factor integer We will spend more time talking about factors in a future class.
  3. vector list Collecting scalars of the same mode? yes no

    matrix yes Collecting vectors of the same length? no Collecting vectors of the same mode? data.frame yes no a simple view of less simple objects that will get you pretty far