Write a function that accepts a vector of integers (for simplicity, you don’t have to
worry about input checking) and returns a logical vector that is TRUE whenever the
input is even, FALSE whenever the input is odd, and NA whenever the input is non‐
finite (nonfinite means anything that will make is.finite return FALSE: Inf, -Inf,
NA, and NaN). Check that the function works with positive, negative, zero, and non‐
finite inputs. [10]
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here