I would like to run some queries with RStudio using the RODBC library. Normally, code like this works fine:
query_6 <- sqlQuery(con, "Select * from my_table where condition = more_than_sth")
I prefer to have some variable which will be defined by me before and stay for more_than_sth
. Lets says it is x
. Is there any method which would make me able to put this variable into the query string? Should I use some kind of paste, maybe before, or put it in directly?
Regards, Rafał