?missing never used it myself, but looks like it might help you :-)
Tony Breyal. On 10 Dec, 19:09, "jonas garcia" <[EMAIL PROTECTED]> wrote: > Dear list, > I have a question and I'm going to give an example of my problem > > f<- function(d1, d2, d3) > { > d<- d1*d2/d3 > return(d) > > } > > v1<- 1 > v2<- 2 > If I try > f(v1, v2, v3) > Error in f(v1, v2, v3) : object "v3" not found > > I obviously got the above error message. > I would like to add something to my function to allow me to get a certain > value (say zero) > if one of the arguments is not provided (in this case v3). > > Thanks in advance > J > > [[alternative HTML version deleted]] > > ______________________________________________ > [EMAIL PROTECTED] mailing listhttps://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guidehttp://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. ______________________________________________ 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.