I have a udf in postgres that expects array as input argument. Example:
create or replace function vwap(prices numeric[], volume integer[])
I have the prices and volume stored in a R data.table.
dt <- data.table(prices = numeric(), volume = integer())
How do I use RPostgresql or any other postgres package to call the defined udf?