🌈 搜索
📅  最后修改于: 2022-03-11 14:55:22.250000             🧑  作者: Mango
> a = c(5,7,2,9) > ifelse(a %% 2 == 0,"even","odd") [1] "odd" "odd" "even" "odd"