→ celestialgod: data.frame 03/31 00:38
[問題類型]:
想在R中建一組資料(類似下面這樣)
[軟體熟悉度]:
新手(沒寫過程式,R 是我的第一次)
[問題敘述]:
原本嘗試用matrix 但是似乎因為屬性不同而無法
有什麼方式可以比較快地做出呢?
(high & weight 是數字要能運算不能全變文字@@)
high weight gender number
student1 166 55 female g1
student2 153 47 female g2
student3 181 80 male b1
student4 174 66 male b2
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 114.41.125.118
※ 文章網址: https://www.ptt.cc/bbs/R_Language/M.1427733466.A.29B.html