title: concatenating strings to make variable name
body: <p>I want to change the name of the output of my R function to reflect different strings that are inputted. Here is what I have tried:</p>
  
  <pre><code>kd = c("a","b","d","e","b")
  
  test = function(kd){
  
    return(list(assign(paste(kd,"burst",sep="_"),1:6)))
  
  }
  </code></pre>
  
  <p>This is just a simple test function. I get the warning (which is just as bad an error for me):</p>
  
  <pre><code>Warning message:
  In assign(paste(kd, "burst", sep = "_"), 1:6) :
    only the first element is used as variable name
  </code></pre>
  
  <p>Ideally I would get ouput like a_burst = 1, b_burst = 2 and so on but am not getting close. </p>
  
  <p>I would like split up a dataframe by contents of a vector and be able to name everything according to the name from that vector, similar to </p>
  
  <p><a href="https://stackoverflow.com/questions/1395191/how-to-split-a-data-frame-by-rows-and-then-process-the-blocks">How to split a data frame by rows, and then process the blocks?</a></p>
  
  <p>but not quite. The naming is imperative.</p>