title: Concatenate char vector with | separator
body: <p>I have a data structure containing char vectrors (see below).   It's a bit messy as it came from json source.</p>
  
  <p>I need to combine/concatenate to one big string with lat/long pairs seperated by | and lat/long values separated by comma with the names removed.</p>
  
  <p>i.e."53.193418,-2881248|53.1905138631287,-2.89043889005541|etc.."</p>
  
  <p>I've tried </p>
  
  <pre><code>piped.data&lt;-unname(paste(b, sep="|", collapse=","))
  </code></pre>
  
  <p>This gets me so far as pairing the values with comma and removing the names.</p>
  
  <p>I just need to add the pipe to the individual pairs </p>
  
  <p>Any ideas?</p>
  
  <pre><code>dput(b)
  
  structure(c("53.193418", "-2.881248", "53.1905138631287", "-2.89043889005541", 
  "53.186744", "-2.890165", "53.189836", "-2.893896", "53.1884117", 
  "-2.88802", "53.1902965", "-2.8919373", "53.1940384", "-2.8972299", 
  "53.1934748", "-2.8814698", "53.1894004", "-2.8886692", "53.1916771", 
  "-2.8846099"), .Names = c("location.coordinate.latitude", "location.coordinate.longitude", 
  "location.coordinate.latitude", "location.coordinate.longitude", 
  "location.coordinate.latitude", "location.coordinate.longitude", 
  "location.coordinate.latitude", "location.coordinate.longitude", 
  "location.coordinate.latitude", "location.coordinate.longitude", 
  "location.coordinate.latitude", "location.coordinate.longitude", 
  "location.coordinate.latitude", "location.coordinate.longitude", 
  "location.coordinate.latitude", "location.coordinate.longitude", 
  "location.coordinate.latitude", "location.coordinate.longitude", 
  "location.coordinate.latitude", "location.coordinate.longitude"
  ))
  </code></pre>