> I would like to define an arbitrary function of an arbitrary number of > variables, > for example, for 2 variables: > > func2 <- function(time, temp) time + temp > > I'd like to keep variable names that have a meaning in the problem (time and > temperature above).
Not quite enough information here. If we called func2(30, 298, 23) which has an arbitrary third argument, what would you like to happen to the third argument? And a fourth, fifth and so on? Something consistent for all arguments, or something different for each depending on its (arbitrary) name? S Ellison ******************************************************************* This email and any attachments are confidential. Any use...{{dropped:8}} ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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.