作者yeuan (心要够坚定)
看板R_Language
标题[问题] 矩阵中的属性不同
时间Tue Mar 31 00:37:43 2015
[问题类型]:
想在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://webptt.com/cn.aspx?n=bbs/R_Language/M.1427733466.A.29B.html
1F:→ celestialgod: data.frame 03/31 00:38