title: Clean character vector and strsplit into dataframe
body: <p>I have a character verctor I want to transform into a data frame.
  It's mostly clean but I can't figure out how to finish the cleaning. Notice that the real data are a <code>Date</code> column as <code>yyyy-mm-dd</code> and a <code>Variable</code> column as a number (in this case four digits but not always) separated by a comma. </p>
  
  <pre><code>class(myvec)
  [1] "character"
  myvec
  [1] " \"2016-01-01,8631n\" " " \"2016-01-02,8577n\" "
  [3] " \"2016-01-03,8476n\" " " \"2016-01-04,8365n\" "
  [5] " \"2016-01-05,8331n\" " " \"2016-01-06,8801n\" "
  [7] " \"2016-01-07,5020n\"" 
  </code></pre>
  
  <p>The space and backslash" (' \"') should be removed. The same with the n\"
  The expected output should be a data frame like this</p>
  
  <pre><code>    Date         Variable  
  [1,] "2016-01-01" "8631"
  [2,] "2016-01-02" "8577"
  [3,] "2016-01-03" "8476"
  [4,] "2016-01-04" "8365"
  [5,] "2016-01-05" "8331"
  [6,] "2016-01-06" "8801"
  [7,] "2016-01-07" "5020"
  </code></pre>
  
  <p>Once the vector is clan, I think this does the job</p>
  
  <pre><code>do.call(rbind,strsplit(clean_vector,","))
  </code></pre>
  
  <p>I think I can convert to date with <code>lubridate</code> and the <code>var</code> to numeric with as.numeric on my own, the question is about getting the character vector clean and in the correct format.</p>