title: Input `typ` can't be recycled to size in R
body: <p>I have this data frame:</p>
  <pre><code>DF
  V1  V2 
  P1  03.02.2020
  22  04.02.2020
  33  05.02.2020
  P2  05.02.2020
  P1  06.02.2020 
  </code></pre>
  <p>And I would like to have this output</p>
  <pre><code>DF
  V1  V2           V3
  P1  03.02.2020   P1
  22  04.02.2020   NA
  33  05.02.2020   NA
  R2  05.02.2020   R2
  S3  06.02.2020   S3
  </code></pre>
  <p>In V3 I would like to have only string contains a letter from V1.</p>
  <p>I used this code</p>
  <pre><code>DF %&gt;% mutate(V3 = grep(&quot;([A-Z])&quot;, V1))
  </code></pre>
  <p>But I got this error:</p>
  <blockquote>
  <p>x Input <code>typ</code> can't be recycled to size</p>
  </blockquote>
  <p>How could I fix this?</p>