search for: sites_object_list

Displaying 1 result from an estimated 1 matches for "sites_object_list".

2009 Apr 21
3
create objects in a loop and adding sqlQuery content to them
...#Here the values I want to loop through >str(site_data) 'data.frame': 44 obs. of 1 variable: $ site_no: num 4 7 9 10 15 16 17 18 19 20 ... #Here my first try [error message on the line within the loop, saying something like: # 'recursive indexing on level 2 failed'] sites_object_list <- vector("list",99) for(i in site_data) { sites_object_list[[i]] <- sqlQuery(channel, paste("select * from [biomass_data$] where site_no = ",i,sep="")) } #Here my second try [error message on the line within the loop, saying something like: # '...