title: R loop with get function with different parameter
body: <p>i create data frame from the following url,</p>
  
  <p>since i've several sites i need to run this script for each site (for example in the attaches example site 1 and 41) and then rbind all the of them to one  </p>
  
  <pre><code>LS_Bellaboo_Token &lt;- xxx
  url_signature_orders_report &lt;- "https://ran-reporting.rakutenmarketing.com/en/reports/signature-orders-report/filters?include_summary=Y&amp;tz=GMT&amp;date_type=transaction"
  from &lt;- Sys.Date()-39
  to &lt;- Sys.Date()-1
  
  site &lt;- 1 
  LinkShare_Report_1 &lt;-
    read.csv(text=rawToChar(
      GET(url_signature_orders_report,
          query=list(token=LS_Bellaboo_Token,
                     start_date=from,
                     end_date=to,
                     network=site))
      [["content"]]),skip = 4, header = TRUE, sep =',')
  if (length(LinkShare_Report_US$X..of.Items)&gt;0 )
  {LinkShare_Report_US["site"] &lt;-"US"}
  
  site &lt;- 41 
  LinkShare_Report_41 &lt;-
    read.csv(text=rawToChar(
      GET(url_signature_orders_report,
          query=list(token=LS_Bellaboo_Token,
                     start_date=from,
                     end_date=to,
                     network=site))
      [["content"]]),skip = 4, header = TRUE, sep =',')
  if (length(LinkShare_Report_US$X..of.Items)&gt;0 )
  {LinkShare_Report_US["site"] &lt;-"US"}
  </code></pre>
  
  <p>instead of duplicated them for each site i want to create loop.</p>
  
  <p>i'm trying the following script </p>
  
  <pre><code>site &lt;-c(1,41)
  for (i in site){
  LinkShare_Report_[i] &lt;-
    read.csv(text=rawToChar(
      GET(url_signature_orders_report,
          query=list(token=LS_Bellaboo_Token,
                     start_date=from,
                     end_date=to,
                     network=site))
      [["content"]]),skip = 4, header = TRUE, sep =',')
  }
  </code></pre>
  
  <p>but it doesn't work for me , i'm new in R  </p>