Skip to content

Tag: dbi

Encoding special characters SQL to R and back

I have a problem passing data from R to SQL and then reading it back The original data is from some excel files and have the following word: Průmyslový Using latin1 for encoding depreciates the u within the word Prumyslový Using latin2 for encoding changes the accent of the u Prùmyslový Which encoding could i…

How to compose query properly using dbGetQuery command?

I have a small database in PostgresSQL. And I connected to it via R-studio and try to retrieve data from database. I wrote a command, but it doesn’t work. And I don’t know what’s the problem. Please, help me. So, the code works well. But these two codes fail Where con is the postgres connect…