From jhallman at frb.gov  Fri Aug 15 18:34:26 2008
From: jhallman at frb.gov (jhallman at frb.gov)
Date: Fri, 15 Aug 2008 12:34:26 -0400
Subject: [Rd] Constructor blah() vs. as.blah()
Message-ID: <31855.1218818066@mralx1.rsma.frb.gov>

When should we use one versus the other?  If I'm designing an S3 class
"blah", should I just implement

blah <- function(x, ...) UseMethod("blah")

and then a bunch of blah.whatever() functions, including blah.default()?
Or should I do

as.blah <- function(x, ...) UseMethod("as.blah")

with a bunch of methods for it?  Or do both?  

Jeff



[Rd] Constructor blah() vs. as.blah()
jhallman at frb.gov