factor 的資料型態和 vector 很相似,差別在於 factor 具有額外的類別屬性(Levels)。 要建立factor的變數,可以使用 factor() 函式:. gender <- c(" ...
確定! 回上一頁