title: How to compare ICD-10 character string or search whether a diagnosis fall into the range?
body: <p>I have a question about how to check whether certain diagnosis fall into ICD-10 range in R.</p>
  
  <p>Here is my diagnosis code:
  C349
  A219
  B003
  C509
  B700
  A090</p>
  
  <p>And here is the standard ICD-10 range I wish to compare to:
  C01.0-C17
  A74.8-A75.9
  B00.1-B33.1
  B69-B72.0
  C00.0-C94.2</p>
  
  <p>I tried to split the character strings into values but since they are still not numeric, I cannot compare them.</p>
  
  <p>Thank you!</p>
  
  <p>Yao</p>