title: subset data based on number of characters in cell in r
body: <p>I have a data frame as like:
  there are names of people, companies, institutes, and universities. All the number of characters of people's names equal to 2 or 3 (Chinese name), others' names are at least 4 characters.</p>
  <p>I want to subset rows with at least two names that have at least 4 characters.</p>
  <pre><code>ID  V1             V2            V3            V4     V5     V6          
  1   AB             BB   
  2   SCV            FGB           ASA           
  3   ABC            EFG Company   XXX institute
  4   TTT. Company   AB            BCD
  5   YYY. Company   AB            BCD           AC     EFF    DDD Company
  6   HJK            KSF Company   GHJ Company   KK
  </code></pre>
  <p>how can I get the result:</p>
  <pre><code>ID  V1             V2            V3            V4     V5     V6                 
  3   ABC            EFG Company   XXX Company
  5   YYY. Company   AB            BCD           AC     EFF    DDD Company
  6   HJK            KSF Company   GHJ Company   KK
  </code></pre>
  <p>Also, is any possibility to get the result as below:
  that only keeps the cell that more than three characters and replaces the cell if it is a people’s name (characters≤3). Actually, this is what I want to get. Thank you in advance for any suggestion.</p>
  <pre><code>ID  V1             V2            V3            V4     V5     V6                 
  3   EFG Company   XXX Company
  5   YYY. Company  DDD Company
  6   KSF Company   GHJ Company  
  </code></pre>