if (條件) '做A' else '做B'. 還有ifelse的寫法 ifelse('條件', '條件若成立:做A', '條件若不成立:做B'). 還有if 、else if 、else多重條件判斷
確定! 回上一頁