title: R programming: Creating a table in db through R
body: <p>I have a matrix called "final_set" which gets created in my R code. Using some of the columns from this final set, I want to create a database table. I'm using the RJDBC package to make this happen.
  However, for some reason its not recognizing "final_set" . I know my connection is okay because I've tried out other sql queries using that. 
  Could anyone help me with this please?</p>
  
  <pre><code> SqlStr = paste("SELECT",
                   S_Vars, ",",     #Global Variable 
                   final_set$pub_idx, ",",
                   final_set$qty_idx
                   into dbo.temp1
                   "from",
                   final_set,
                   sep = ""
                 )
  
    dbSendUpdate(conn,SqlStr)
  </code></pre>
  
  <p>Error: Error in paste(**): object final_set not found</p>