I am basically running a query to get IDs for a specific year given a criteria . For example
table.2001=dbGetquery(conn,"Select ID from base table where x > 3 and year = 2001")
Now here i want to iterate over the year, (2001 to 2015) and i get output table.2001, table.2002, table.2003 and so on for each year.