我正在尝试编写 R 代码
我试过这样的事情,但没有奏效:
iPUMS_2016 <- mutate (iPUMS_2016, metrounk = ifelse(METRO==0,mutate(rand_int=sample.int(n())) ))
r
r ×1