Question: use R as coding language q#9 and 10 asap D The following information is used in questions 8-11. The count_nas () function inputs a vector

 use R as coding language q#9 and 10 asap D The

use R as coding language q#9 and 10 asap

following information is used in questions 8-11. The count_nas () function inputs

D 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 9 3 pts Keeping the if and for statement structure, fix the count_nas () function so that it works as intended. Edit View Insert Format Tools Table 12pt Paragraph BIUA LV TRY . .. Question 10 3 pts Use vectorization to rewrite the count_nas () function without a loop. Edit View Insert Format Tools Table 12pt Paragraph B I U A LV T V Q V BV BY DV

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 Mathematics Questions!