Question: Given x < - c ( 1 , 2 , 7 , 3 , 6 , 8 , 1 2 , 1 3 , 1
Given x c how do you count the number of even numbers in a vector x using a for loop in R
Question Answer
a
count sumx
b
count ; while x if x count count x x
c
count ; for val in x if val count count
d
count ; for val in x if val count count
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
