How to use multiples objects in a function on R -
i'm new in programing i'm in r. have multiples objects similar names (ams.1,ams.2,ams.3, etc) , run function (it's function "crop" package) them , assign new objects (data.final.1, data.final.2) result. that:
for(x in 1:119) { assign(paste("data.final", x, sep = "."),crop(a,ams.(x))) }
apparently not working. ideas?
Comments
Post a Comment