title: Removing space between numeric values in R
body: <p>My list consist values as shown. </p>
  
  <pre><code>Mylist:
  [[1]]
  [1] 1 1 1 0 1 1
  
  [[2]]
  [1] 0 0 0 0 1 0
  
  [[3]]
  [1] 0 0 0 0 1 0
  </code></pre>
  
  <p>I need to convert this binary values to decimal. I am using <code>BinToDec()</code> function. But here values are space separated. How to get the values like 111011, 000010 etc in that list. I have tried with <code>gsub</code>, but it removes spaces in string. Thanks!</p>