title: For an ID, how to calculate percentage of a chosen option?
body: <p>I was writing some code in R and for an ID I need to calculate the percentage that an option is chosen, as shown in the screenshot here:</p>
  <p><a href="https://i.stack.imgur.com/irsId.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/irsId.png" alt="Tables" /></a></p>
  <p>I tried with <code>group_by</code> and the truth is that nothing has helped me.</p>
  <p>I'm still getting started, in case you know if there is any other command or function that I can use?</p>
  <p>I would really appreciate the help, thanks for reading!</p>