I would like to generate dynamic (with an index number from the loop) and invoke it later like below:
for (i in seq(1,10)) {
p_i <- i^2 #here _i is a dynamic value which is equate to the current i value
d_i <- (p_i-20)*15 # here _i for both d_i and p_i are all dynamic
}
Thank you very much for your expertise