On Tue, May 12, 2009 at 12:18:59PM +0200, Titus von der Malsburg wrote: > > Is there a canonical way to tell a function which fields in a data > frame are relevant? What other alternatives are possible? What are > the pros and cons of the alternatives? > Why not simply rearrange your data frames to have standardized column names (see names() function), and write functions that operate on the standardized format? The change need not be destructive, you can first make a copy of the data.
If all data frames have the same sequence of variables (time, x, y), you can just use indices to refer to the columns, e.g. 1 corresponds to the time variable. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.