[R] vector where elements are functions evaluated at integers, but length of vector varies

Carl Witthoft carl at witthoft.com
Thu Oct 10 13:49:04 CEST 2013


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.



More information about the R-help mailing list