摘要: R语言中的因子就是factor,用来表示分类变量(categorical variables),这类变量不能用来计算而只能用来分类或者计数。可以排序的因子称为有序因子(ordered factor)。factor()用来生成因子数据对象,语法是:factor(data, levels, labels... 阅读全文
posted @ 2014-11-06 09:10 申龙斌的程序人生 阅读(2841) 评论(0) 推荐(0) 编辑