powered by
Cross-parse from an R parse tree into SQL.
tokenize_for_SQL(lexpr, colnames, env = parent.frame())
item from substitute
substitute
column names of table
environment to look for values
sql info: list(presentation, parsed_toks(list of tokens), sql_text, symbols_used, symbols_produced, free_symbols)
# NOT RUN { tokenize_for_SQL(substitute(1 + 2), colnames= NULL) tokenize_for_SQL(substitute(a := 3), colnames= NULL) tokenize_for_SQL(substitute(a %:=% 3), colnames= NULL) # }
Run the code above in your browser using DataLab