Question: # Complete the function sd _ or _ na below. The function takes as an input a vector # called vec. # If vec is

# Complete the function sd_or_na 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
#sd_or_na = function(vec){
# if (){
# return()
#
 # Complete the function sd_or_na below. The function takes as an

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!