Table of Contents

About

Str display compactly the internal structure of an R object.

Str is an alternative for summary

Example

> v <- c(1,-2,3.3,7,-3)
> str(v)
 num [1:5] 1 -2 3.3 7 -3

where

  • num: indicates the numeric class
  • [1:5]: from one to 5 elements
  • 1 -2 3.3 7 -3: the elements