> > 
> > 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.

yes! Thanks for pointing this out. It's because "[.structable" has a
non-standard behavior. Using:

"[.structable" = function(object, ...) NextMethod()

at the command line, str() would work as expected.

David

> 
> 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
> > [EMAIL PROTECTED]
> > 
> > ______________________________________________
> > [email protected] mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide! 
> > http://www.R-project.org/posting-guide.html
> 
> 


-- 
Dr. David Meyer
Department of Information Systems and Operations

Vienna University of Economics and Business Administration
Augasse 2-6, A-1090 Wien, Austria, Europe
Fax: +43-1-313 36x746 
Tel: +43-1-313 36x4393
HP:  http://wi.wu-wien.ac.at/~meyer/

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to