Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我知道如何在 dplyr 中这样做:
test <- df %>% mutate(col = ifelse(col == 0,NA,col)
我如何使用 base r 执行此操作?