Suppose you had a dataset (assigned to df) with 10,000 observations and with a single numerical column called y. 6,995 observations for y are positive; 5 observations for y are NA; and the others are negative (i.e., less than 0). The code should allow you to change the value of y to NA if y is currently negative. If the value of y is currently positive or NA, it should remain unchanged. Some part of the code are redacted. df$y[   A   (df$y    B     )]   C     Complete the code by filling the blanks below.    A    : [Fill in the blank]    B    : [Fill in the blank]    C    : [Fill in the blank] 多项填空题

登录即可查看完整答案

我们收录了全球超50000道真实原题与详细解析,现在登录,立即获得答案。

类似问题

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!