Carl Witthoft
2013-Oct-10 11:49 UTC
[R] vector where elements are functions evaluated at integers, but length of vector varies
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.