R语言 如何用IF语句判断 一个数字的奇偶

jishu <- function(x){
ifelse(x%%2 ==0,F,T)
}
 
posted @ 2017-03-28 11:04  holy_black_cat  阅读(4702)  评论(0编辑  收藏  举报