R objects Dr. Jennifer (Jenny) Bryan Department of Statistics and - - PowerPoint PPT Presentation

r objects
SMART_READER_LITE
LIVE PREVIEW

R objects Dr. Jennifer (Jenny) Bryan Department of Statistics and - - PowerPoint PPT Presentation

R objects Dr. Jennifer (Jenny) Bryan Department of Statistics and Michael Smith Laboratories University of British Columbia JBs typology of R objects, i.e. flavors a simple view of simple R objects that will get you pretty far


slide-1
SLIDE 1

R objects

  • Dr. Jennifer (Jenny) Bryan

Department of Statistics and Michael Smith Laboratories University of British Columbia

slide-2
SLIDE 2

Simple view Technical echnically correct R ect R view Simple view mode class typeof character character character character logical logical logical logical numeric numeric integer or numeric integer or double factor numeric factor integer

JB’s typology of R objects, i.e. “flavors”

a simple view of simple R objects that will get you pretty far

slide-3
SLIDE 3

Simple view Technical echnically correct R ect R view Simple view mode class typeof character character character character logical logical logical logical numeric numeric integer or numeric integer or double factor numeric factor integer

JB’s typology of R objects, i.e. “flavors”

a simple view of simple R objects that will get you pretty far

slide-4
SLIDE 4

JB’s typology of R objects, i.e. “flavors”

a simple view of simple R objects that will get you pretty far

Simple view Technical echnically correct R ect R view Simple view mode class typeof character character character character logical logical logical logical numeric numeric integer or numeric integer or double factor numeric factor integer

slide-5
SLIDE 5

“Simple view” of data collections

vector list Collecting scalars

  • f the same mode?

yes no matrix yes Collecting vectors

  • f the same length?

no Collecting vectors

  • f the same mode?

data.frame yes no