title: R:: How to make a dataframe and attach its column names in a single line in R
body: <p>I have a data frame like this:</p>
  
  <pre><code>parList &lt;- as.data.frame( rbind(
    c("PACKAGE"    ,"OptimizeR"              ),
    c("RCALL"      ,"optimizeR_jar"          ),
    c("var_PRODUCT", "PRODUCT_CODE"          ),
    c("var_JAR"    ,"SUGAR_JAR"              ),
    c("var_JAR"    ,"STRENGTH_JAR"           ),
    c("candidat"   ,"C18"                    ),
    c("benchmark"  ,"L23"                    ),
    c("var_TARGET" ,"PRODUCT_OVERALL_OPINION")
  )
  )
  </code></pre>
  
  <p>The column names can be attached like this</p>
  
  <pre><code>names(parList) &lt;- c("CODE", "VAL")
  </code></pre>
  
  <p>I want to make both in a single line of code. Please advice how this can be achieved? Thank you</p>