How to use mutate to create variable applying function by rows

Please note the policies on cross-posting to avoid duplicating people's efforts:

1 Like