[R] str and structable error
Uwe Ligges
ligges at statistik.uni-dortmund.de
Mon Nov 28 10:19:13 CET 2005
Petr Pikal wrote:
> Hallo
>
> I encountered a behaviour which puzzles me (but
> finally I did get what I wanted).
>
> I used structable and strucplot but I wanted to change
> names of variables in structable object. I tried to subset
> it, use names but to no avail. So I tried str and
> expected to get a structure of an object but:
>
>
>>sss<-structable(Titanic)
>>str(sss)
>
> Error in "[.structable"(x, args[[1]], ) : subscript out of
> bounds
Looks like package vcd needs a separate structable method for the str()
generic.
Uwe Ligges
> Finally I learned, that I need to change attributes of
> structable object.
>
> Is this error message OK and I did not read
> documentation properly? Or is it normal that str gives
> an error on some objects but I just was not so lucky to
> meet one?.
>
> W2000, R2.2.0, vcd package Built: R 2.2.0; ; 2005-11-
> 22 14:23:44; windows,
>
> Best regards.
>
> Petr
>
> Petr Pikal
> petr.pikal at precheza.cz
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
More information about the R-help
mailing list