title: Programmatric Vector Construction
body: <p>Does any one how to contruct the following vector programatically:</p>
  
  <pre><code>c("street" = "st", "place" = "pl" , "road" = "rd")
  </code></pre>
  
  <p>I am using it in the following context:</p>
  
  <pre><code>library(stringr)
  
  vct_address &lt;- c("20 fun street", 
            "5 neko place", 
            "23 ggplot road", 
            "7 dplyr street", 
            "9 sad place") 
  
  vct_re &lt;- c("street" = "st", "place" = "pl" , "road" = "rd")
  stringr::str_replace_all(vct_address, vct_re)
  #  "20 fun st"    "5 neko pl"    "23 ggplot rd" "7 dplyr st"   "9 sad pl"
  </code></pre>