Displaying 1 result from an estimated 1 matches for "ldalist".
Did you mean:
ldaplist
2012 Jun 11
1
saving sublist lda object with save.image()
...would give me the error I'm running into:
> library(MASS)
> ldaobject<-lda(Species~.,data=iris)
> someotherresults<-c(1:5)
> list1<-list(someotherresults,ldaobject)
> list2<-list(list1,list1,list1)
> plot(list2[[1]][[2]])#plots the ldaobject
> save.image('ldalists.Rdata')
###Now if I close my R buffer and reopen it I get:
> load('ldalists.Rdata')
> plot(list2[[1]][[2]])
Error in xy.coords(x, y, xlabel, ylabel, log) :
'x' is a list, but does not have components 'x' and 'y'
### And my lda obects appear to have ch...