title: stringdist on one vector
body: <p>I'm trying to use stringdist to identify all strings with a max distance of 1 in the same vector, and then publish the match.  Here is a sample of the data:</p>
  
  <p>Starting data frame:</p>
  
  <pre><code>a = c("tom", "tomm", "alex", "alexi", "chris", "jen", "jenn", "michell") 
  b = c(NA) 
  df = data.frame(a,b) 
  </code></pre>
  
  <p>Desired results:</p>
  
  <pre><code>a = c("tom", "tomm", "alex", "alexi", "chris", "jen", "jenn", "michell") 
  b = c("tomm", "tom", "alexi", "alex", 0, "jenn", "jen", 0) 
  df = data.frame(a,b) 
  </code></pre>
  
  <p>I can use stringdist for two vectors, but am having trouble using it for one vector.  Thanks for your help, R community.</p>