I have a table myschema.fruits
in a postgresql database mydatabase
. From within an R script I would like to insert a single row to that table, at the end os my script. The table row has 3 columns type
, taste
and color
. Those I have in 3 different variables in my R script with same variable names like so:
type <- "Apple"
taste <- "Sweet"
color <- "Red"
I would like to use the RPostgreSQL driver to perform this insert, but I can't figure out how to do it?