I believe that this audit is a bad audit. (hm, for some reason it now says someone else reviewed and passed it, but I failed. maybe because I typed this question before pressing "I understand," so it got passed on to someone else. anyway,) The question text was:
I have a sequence of 0s and 1s in this manner:
xx <- c(0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 1)
And I want to select the 0s and the first 1s.
The results should be:
ans <- c(0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 1)
What's the fastest way? in R
I clicked "close" so I could vote to close as "must demonstrate a minimal understanding," but then the audit message slapped me.
I know the criteria for an audit, but I just want to know: is this one correct? Should have I selected "Leave Open," and why? Or is it just another bad audit?