sql_filter.Rd
utility function to filter sql files
sql_filter(sql_precode = "IN", x, sql_code, flag = "-- insert species")
change input e.g., ("=")
the variable to change (e.g., year)
the sql query code...
a flag in the sql code to place the precode and x in the appropriate location
if (FALSE) {
.d = sql_filter(sql_precode = "<=", 2011, sql_code = .d, flag = "-- insert year")
}