I believe switch to be more efficient

Looking at the documentation for ‘match.arg’ they use a switch in the
example and therefore I believe ‘switch’ to be more efficient