Question: Use R as coding language and answer asap The following information is used in questions 8-11. The count_nas () function inputs a vector x and

Use R as coding language and answer asap

The following information is used in questions 8-11. The count_nas () function inputs a vector x and outputs the number of NAs (including NaN, if applicable) in x. count nas count_nas (character (0) ) [1] 0 > count_nas (c (1, NA, 3, NA, NaN, 8) ) [1] 3 > count nas (NA) [1] 1 > count nas (1:10) [1] 0 D Question 8 5 pts There are several (more than one and no more than five) flaws in the given count_nas () function. Identify and explain each flaw. Edit View Insert Format Tools Table 12pt v Paragraph
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
