I am searching for a way in R to get the all numbers for integers from a function in a range from a to b
pfA <- function(x) { return ( 123 * x ) ; }
p_a = Vectorize(pfA, "x")
plot(0,0, col="purple", type="l", xlim=c(-5,5000), ylim=c(-5,5000))
curve (p_a(x), col="red", add=TRUE)
print_values((p_a(x),a,b)
where print_values would return a list (or two dimesional array), containing all x in the range a to b and the corresponding return value of the function
1 : 123
2 : 246
3 : 369
...