title: DuckDB R : Calculate mean and median for multiple columns
body: <p>I have a duckdb and want to calculate the means and median or multiple columns at once:</p>
  <p>e.g.</p>
  <pre><code>#This works:
  mtcars %&gt;%
  summarise(across(everything(),list(mean, median))
  
  #This doesn't
  tbl(con,&quot;mtcars&quot;)%&gt;%
  summarise(across(everything(),list(mean, median))
  </code></pre>