whoop... I see my problem:> all(sapply(resources,length)==5855)
[1] FALSE
thanks,
John Strumila
>
> -----Original Message-----
> From: Strumila, John
> Sent: Tuesday, 6 February 2001 2:45 PM
> To: r-help at stat.math.ethz.ch
> Subject: corrupt data.frame
>
>
> gday R-friends,
>
> could someone please help with my little corruption problem?
> I know I can recreate my dataframe but I would prefer to be
> able to identify my actual problem and how to fix it.
>
> I tried a debug on "as.matrix.data.frame" but I cant find the
> error text.
>
> > xx<-as.matrix(resources)
> Error in as.matrix.data.frame(resources) :
> dim<- length of dims do not match the length of object
> > dim(resources)
> [1] 5855 136
> > sapply(dimnames(resources),length)
> [1] 5855 136
>
> thanks,
> John Strumila
>
>
>
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at
stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._