→ celestialgod: 看manual as.factor coerces its argument to a fac 03/26 15:28
→ celestialgod: tor. It is an abbreviated form of factor. 03/26 15:28
→ celestialgod: as.factor是強制轉型,factor是你可以自行指定level 03/26 15:29
→ celestialgod: 還有其他要exclude的東西等等...factor算是比較廣 03/26 15:29
→ celestialgod: 至於使用時機,你需要指定level跟exclude等,就必須 03/26 15:29
→ celestialgod: 使用factor,其他時候這兩種應該通用, 03/26 15:30
→ celestialgod: 至於效率部分,有待測試。 03/26 15:30
→ celestialgod: 你可以查看as.factor的function(直接在R打as.factor 03/26 15:30
→ celestialgod: 它是由factor,配上if check資料做成的 03/26 15:31
→ celestialgod: 以上希望有回答道 03/26 15:31
→ LouisPion: 非常清楚...感謝你! 03/26 17:06
推 popxpopxpop: c大要推 03/26 23:56