[R] S3 class question

From: Joel Bremson <joel3000_at_gmail.com>
Date: Fri 26 Aug 2005 - 09:03:13 EST


Hi,

I have a class called "spss" containing prepared info from an SPSS file.
>...
>class(ret) = "spss"
>return(ret)
The function that returns this defined in a file that I source into R.

Also in that file is a function matSummary.spss.

I think I ought to be able to call
>matSummary(ret)

to run the function, but only
>matSummary.spss(ret)

will work.

What am I doing wrong here? This seems like a simple problem yet I've been able to find nothing in the archives about this.

Joel

-- 
Joel Bremson
Graduate Student
Institute for Transportation Studies - UC Davis
http://etrans.blogspot.com

	[[alternative HTML version deleted]]

______________________________________________
R-help@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
Received on Fri Aug 26 09:17:57 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:39:56 EST