Message-ID: <3ECA4CF3.7030508@yale.edu>
Date: 2003-05-20T15:42:43Z
From: ivo welch
Subject: what.is(object)
hi: still experimenting. is there a function that tells me what an S
object is, or how it is constructed?
s <- cor.test ( x, y );
s$estimate$name = 'correlation' ; <- try to rename 'cor' to
'correlation' fails. obviously, name is not a part here.
s$newfield = c("another info field", 3.2 ) ; <- this is not congruous
so
what.is(s) #tells me that this is a class called htest
what.is(s$statistic) # helps me
would allow me to see how things are constructed. does S contain such
a feature?
regards,
/iaw