title: How to combine a list with a number sequence in r?
body: <p>I am doing my PhD research on the online forums dedicated to WW2. I have a question which seems very basic to me, but I just can't wrap my head around it.</p>
  
  <p>There's a list of links where the links only differ by author_ids. Like this:</p>
  
  <pre><code>[1] "http://forum.axishistory.com/search.php?st=0&amp;sk=t&amp;sd=d&amp;sr=posts&amp;author_id=2&amp;start="  
  [2] "http://forum.axishistory.com/search.php?st=0&amp;sk=t&amp;sd=d&amp;sr=posts&amp;author_id=4&amp;start="  
  [3] "http://forum.axishistory.com/search.php?st=0&amp;sk=t&amp;sd=d&amp;sr=posts&amp;author_id=6&amp;start="  
  [4] "http://forum.axishistory.com/search.php?st=0&amp;sk=t&amp;sd=d&amp;sr=posts&amp;author_id=7&amp;start="  
  [5] "http://forum.axishistory.com/search.php?st=0&amp;sk=t&amp;sd=d&amp;sr=posts&amp;author_id=8&amp;start="  
  [6] "http://forum.axishistory.com/search.php?st=0&amp;sk=t&amp;sd=d&amp;sr=posts&amp;author_id=9&amp;start="  
  [7] "http://forum.axishistory.com/search.php?st=0&amp;sk=t&amp;sd=d&amp;sr=posts&amp;author_id=10&amp;start=" 
  [8] "http://forum.axishistory.com/search.php?st=0&amp;sk=t&amp;sd=d&amp;sr=posts&amp;author_id=11&amp;start=" 
  [9] "http://forum.axishistory.com/search.php?st=0&amp;sk=t&amp;sd=d&amp;sr=posts&amp;author_id=12&amp;start=" 
  [10] "http://forum.axishistory.com/search.php?st=0&amp;sk=t&amp;sd=d&amp;sr=posts&amp;author_id=13&amp;start="
  # etc until id=111
  </code></pre>
  
  <p>Then I have a sequence of numbers from 0 to 17000 by 15 that looks like this:</p>
  
  <pre><code> [1]     0    15    30    45    60    75    90   105   120   135   150  165   180   195   210   225   240   255
   [19]   270   285   300   315   330   345   360   375   390   405   420   435   450   465   480   495   510   525
   [37]   540   555   570   585   600   615   630   645   660   675   690   705   720   735   750   765   780   795
   [55]   810   825   840   855   870   885   900   915   930   945   960   975   990  1005  1020  1035  1050  1065
    # etc until 17000
  </code></pre>
  
  <p>I want to create link lists where the link with each id number correlates with each element from the sequence of numbers. Here's the example of it for id=2:</p>
  
  <pre><code>[1] "http://forum.axishistory.com/search.php?st=0&amp;sk=t&amp;sd=d&amp;sr=posts&amp;author_id=2&amp;start=0"    
  [2] "http://forum.axishistory.com/search.php?st=0&amp;sk=t&amp;sd=d&amp;sr=posts&amp;author_id=2&amp;start=15"   
  [3] "http://forum.axishistory.com/search.php?st=0&amp;sk=t&amp;sd=d&amp;sr=posts&amp;author_id=2&amp;start=30"   
  [4] "http://forum.axishistory.com/search.php?st=0&amp;sk=t&amp;sd=d&amp;sr=posts&amp;author_id=2&amp;start=45"   
  [5] "http://forum.axishistory.com/search.php?st=0&amp;sk=t&amp;sd=d&amp;sr=posts&amp;author_id=2&amp;start=60"   
  </code></pre>
  
  <p>I guess you get the idea. 
  I was trying to write a for loop: </p>
  
  <pre><code>for (i in 100) {
    paste0(links_p1[[i]], no)
  }
  </code></pre>
  
  <p>but it only puts out the list for the 100th element.</p>
  
  <p>When I tried the lapply function, the output was that paste0 isn't a function.</p>
  
  <p>The best I have so far is this: </p>
  
  <pre><code>links_max_1 &lt;- paste0(links_p1[[1]], no)
  links_max_2 &lt;- paste0(links_p1[[2]], no)
  links_max_3 &lt;- paste0(links_p1[[3]], no)
  links_max_4 &lt;- paste0(links_p1[[4]], no)
  links_max_5 &lt;- paste0(links_p1[[5]], no)
  # etc until links_max_100
  </code></pre>
  
  <p>and this is obviously not very good. How can I put together the numbers with each of the elements of the links_p1 list?</p>