Hi, I have two integers a and b (with a<b), as well as a function f(x). Is there a way of getting the vector (f(a), ..., f(b)) from R without having to explicitly write it out? as my a and b vary.
Thanks for your help </quote> What did you try? Further, without knowing what your function f(x) is, we can't tell you whether it accepts vector inputs. -- View this message in context: http://r.789695.n4.nabble.com/vector-where-elements-are-functions-evaluated-at-integers-but-length-of-vector-varies-tp4677932p4677973.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ 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.