You could easily write something like this. indicator<-function(condition) ifelse(condition,1,0). ifelse can be used on vectors, ...
確定! 回上一頁