Skip to content
Prev 180050 / 398502 Next

What's the best way to tell a function about relevant fields in data frames

You could define a generic detect(obj, ...) that dispatches (using S3):

detect.formula(fo, data)
detect.data.frame(data)
detect.default(x, y, trial)

where the first two call the third thereby modeling it on lm,
a common approach, and giving the user choice in interface.

On Tue, May 12, 2009 at 6:18 AM, Titus von der Malsburg
<malsburg at gmail.com> wrote: