From kelley.dan at gmail.com  Wed Mar 11 23:06:02 2009
From: kelley.dan at gmail.com (Dan Kelley)
Date: Wed, 11 Mar 2009 15:06:02 -0700 (PDT)
Subject: [Rd]  better function name: make or as
Message-ID: <22465595.post@talk.nabble.com>


I've written a function (for the 'oce' package) that takes a list of one type
of object (a "station", observations made by a ship at one location), and
creates another object (a "section", containing a sequence of station
observations).

My question is, should I name my function "make.section()" or
"as.section()"?

I wouldd like to pattern the name on other R functions, but I'm having
difficulty understanding when 'as' and 'make' are used.  (At the moment, I
am using 'make', because it seems to me that 'as' is mainly for mapping
input to output on a sort of one-to-one basis.)

Any suggestions?


-- 
View this message in context: http://www.nabble.com/better-function-name%3A-make-or-as-tp22465595p22465595.html
Sent from the R devel mailing list archive at Nabble.com.



[Rd] better function name: make or as
Dan Kelley