[R] For Loop - loading 10 sets of data and calculating

2008-11-07 Thread PDXRugger
I am trying to simplify my code by adding a for loop that will load and compute a sequence of code 10 time. They way i run it now is that the same 8 lines of code are basically reproduced 10 times. I would like to replace the numeric value in the code (e.g. Bin1, Bin2Bin10) each time the

Re: [R] For Loop - loading 10 sets of data and calculating

2008-11-07 Thread jim holtman
# I would put this in a list in the following manner Bin - lapply(1:10, function(.file){ #--- #Loads bin data frame from csv files with acres and TAZ data fileName - paste(I:/Research/Samba/urb_transport_modeling/LUSDR/Workspace/BizLandPrice/data/Bin_lookup_values/Bin, .file,