Question: # Complete the function sd _ or _ na below. The function takes as an input a vector # called vec. # If vec is
# Complete the function sdorna below. The function takes as an input a vector
# called vec.
# If vec is numeric, the function returns the standard deviation of vec.
# If vec is not numeric, the function returns the special value NA
# This is commented out to start with, so that you don't get errors.
# Uncomment all the lines of this function by deleting the # symbols.
# Then you can add the missing parts to complete the function
#sdorna functionvec
# if
# return
#
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
