Skip to content

predict function

1 message · John Fox

#
Dear Roft and Andy,
At 10:41 AM 2/14/2004 -0500, Liaw, Andy wrote:
and getS3method("predict", "loess") or getAnywhere("predict.loess") will 
retrieve the function without specifying where it resides.

I'm sure that opinions are divided (and perhaps the current implementation 
could be improved), but I like the namespace mechanism: Namespaces give a 
package author the ability to create objects without (inadvertently) 
shadowing objects of the same names in other packages, and the ability to 
shadow objects intentionally that are (potentially) in locations higher on 
the search path. To my mind, the traditional flat namespace in R was a 
liability.

Regards,
  John
-----------------------------------------------------
John Fox
Department of Sociology
McMaster University
Hamilton, Ontario, Canada L8S 4M4
email: jfox at mcmaster.ca
phone: 905-525-9140x23604
web: www.socsci.mcmaster.ca/jfox