title: loop web page R
body: <p>I want to apply a loop to scrape data from multiple webpages in R. I'm running the next code:</p>
  
  <pre><code> city &lt;- c("Spokane+Valley",    "Spokane+-+West" ,  "Stanwood", "Steilacoom",   "Stevenson",    "Sudden+Valley",    "Sultan",   "Sumas",    "Summit",   "Summitview",   "Sumner",   "Sunnyside",    "Sunnyslope",   "Suquamish",    "Tacoma+-+Central", "Tacoma+-+East",    "Tacoma+-+NE",  "Tacoma+-+NW",  "Tacoma+-+SE",  "Tacoma+-+South",   "Tacoma+-+SW",  "Tacoma+-+West",    "Tanglewilde" , "Tenino",   "Terrace+Heights",  "Thrashers+Corner", "Tokeland", "Toledo" , "Toppenish", "Town+and+Country", "Tracyton" ,    "Trentwood",    "Tukwila",  "Tulalip+Bay"  ,    "Tulalip+Indian+Reservation",   "Tumwater", "Twisp",    "Union+Gap"  ,  "University+Place", "Vancouver", "Vancouver+Mall",  "Veradale", "Walla+Walla",  "Walla+Walla+East", "Waller",   "Walnut+Grove", "Wapato",   "Warden",   "Washougal",    "Wenatchee",    "West+Clarkston-Highland",  "West+Lake+Sammamish",  "West+Longview",    "West+Pasco",   "West+Richland",    "West+Side+Highway",    "West+Valley",  "Westport", "White+Center-Shorewood",   "White+Salmon", "White+Swan",   "Winlock",  "Winslow",  "Winthrop", "Woodinville",  "Woodland", "Woodmont+Beach",   "Yakima",   "Yelm", "Zillah")
  
   for(i in city){
   url &lt;- ("http://www.washingtongasprices.com/GasPriceSearch.aspx?typ=adv&amp;fuel=D&amp;srch=0&amp;area=",i,"&amp;site=Washington&amp;station=All%20Stations&amp;tme_limit=36")
  }
  </code></pre>
  
  <p>But I having this message: </p>
  
  <p>Error: unexpected ',' in:
  "for(i in city){
    url &lt;- ("<a href="http://www.washingtongasprices.com/GasPriceSearch.aspx?typ=adv&amp;fuel=D&amp;srch=0&amp;area=" rel="nofollow">http://www.washingtongasprices.com/GasPriceSearch.aspx?typ=adv&amp;fuel=D&amp;srch=0&amp;area=</a>","</p>
  
  <p>How can I solve it?</p>