title: Google Script: function that insert new row copying functions/formulas from last row
body: <p>I have a table which cells have functions/formulas, like this one:</p>
  
  <p><img src="https://i.stack.imgur.com/AkfMW.png" alt="enter image description here"> </p>
  
  <p>I need a script that create a new row copying to it the functions/formulas of the last used row.
  I find <a href="https://stackoverflow.com/questions/16143705/google-spreadsheet-insert-rows-and-copy-down-hidden-content">this script which create a new row</a> but it doesn't copy functions/formulas. How could I implement this formatting copy task in Google Script without having to manually select and copy?</p>
  
  <p>Thanks for any help!</p>