I can read data from database using this code:
{sql connection=con} SELECT year, sex, age from INFROMATION
but how I can take that to data.frame?
From here:
If you want to assign the results of the SQL query to an R data frame, you can do this using the
output.varoption.
For example:
{sql, connection=con, output.var="info_query"}
SELECT year, sex, age from INFROMATION