title: Using Statebins package in R
body: <p>I'm attempting to create a map in R using the Statebins package here: <a href="https://github.com/hrbrmstr/statebins" rel="nofollow">https://github.com/hrbrmstr/statebins</a> </p>
  
  <p>And am receving the following error: 
  "Error: state_data[, state_col] %in% state_coords[, merge.x] are not all TRUE"</p>
  
  <p>I thought I might have been missing some states but I've checked the data and it looks fine. My process is below. Thank you!</p>
  
  <pre><code>mydata = read.csv("data.csv")  # read from first sheet
  mydata2 &lt;- subset(mydata, year == 2008)
  
  mydata2$state &lt;- as.character(mydata2$state)
  statebins(mydata2, "state", "value")
  </code></pre>
  
  <p>My dataset is below: </p>
  
  <pre><code>&gt; head(mydata2, n=51)
   year    value                state
  1   2008 55.50628              Alabama
  7   2008 67.52304               Alaska
  13  2008 70.94418              Arizona
  19  2008 57.89743             Arkansas
  25  2008 71.40450           California
  31  2008 75.29866             Colorado
  37  2008 73.13052          Connecticut
  43  2008 74.69418             Delaware
  49  2008 74.43594 District of Columbia
  55  2008 68.75503              Florida
  61  2008 66.43982              Georgia
  67  2008 85.68623               Hawaii
  73  2008 58.73205                Idaho
  79  2008 70.58312             Illinois
  85  2008 67.59861              Indiana
  91  2008 80.71313                 Iowa
  97  2008 69.58322               Kansas
  103 2008 63.25878             Kentucky
  109 2008 59.70804            Louisiana
  115 2008 83.74306                Maine
  121 2008 72.72313             Maryland
  127 2008 84.44669        Massachusetts
  133 2008 77.63979             Michigan
  139 2008 82.58318            Minnesota
  145 2008 61.47873          Mississippi
  151 2008 67.35522             Missouri
  157 2008 64.08789              Montana
  163 2008 63.00454             Nebraska
  169 2008 77.41964               Nevada
  175 2008 80.62524        New Hampshire
  181 2008 65.33956           New Jersey
  187 2008 68.71076           New Mexico
  193 2008 66.61414             New York
  199 2008 66.60782        Northcarolina
  205 2008 76.75455         North Dakota
  211 2008 68.01427                 Ohio
  217 2008 61.80503             Oklahoma
  223 2008 77.22575               Oregon
  229 2008 73.86333         Pennsylvania
  235 2008 72.08964         Rhode Island
  241 2008 67.56644       South Carolina
  247 2008 74.99466         South Dakota
  253 2008 64.67229            Tennessee
  259 2008 65.36695                Texas
  265 2008 72.84640                 Utah
  271 2008 79.56832              Vermont
  277 2008 64.71876             Virginia
  283 2008 77.76023           Washington
  289 2008 58.24326         West Virgnia
  295 2008 78.07619            Wisconsin
  301 2008 67.60178              Wyoming
  </code></pre>