Skip to content
Prev 32295 / 398513 Next

what.is(object)

S
congruous
You can use str(s) to get the internal components and values.

See ?str

Using example data from cor.test:
List of 9
 $ statistic  : Named num 1.84
  ..- attr(*, "names")= chr "t"
 $ parameter  : Named num 7
  ..- attr(*, "names")= chr "df"
 $ p.value    : num 0.108
 $ estimate   : Named num 0.571
  ..- attr(*, "names")= chr "cor"
 $ null.value : Named num 0
  ..- attr(*, "names")= chr "correlation"
 $ alternative: chr "two.sided"
 $ method     : chr "Pearson's product-moment correlation"
 $ data.name  : chr "x and y"
 $ conf.int   : atomic [1:2] -0.150  0.896
  ..- attr(*, "conf.level")= num 0.95
 - attr(*, "class")= chr "htest"


HTH,

Marc Schwartz