[R] object of type 'S4' is not subsettable
phillen
phlentner at gmail.com
Tue Apr 3 18:42:12 CEST 2012
Figured it out.
given that object 'cit' is of class S4, extracting information works as
follows:
1)finding out names of slots in object 'cit'
> slotNames(cit)
[1] "x" "Z0" "Z1" "ZK" "type" "model"
[7] "ecdet" "lag" "P" "season" "dumvar" "cval"
[13] "teststat" "lambda" "Vorg" "V" "W" "PI"
[19] "DELTA" "GAMMA" "R0" "RK" "bp" "spec"
[25] "call" "test.name"
2) extracting info from wanted slot
> cit at teststat
[1] 5.348440 9.068113 10.643293
--
View this message in context: http://r.789695.n4.nabble.com/object-of-type-S4-is-not-subsettable-tp4529063p4529432.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list