摘要: 001、 test <- as.factor(c(2, 3, 7, 8)) test as.numeric(test) ## 不能直接将因子型转换为数值型 as.numeric(as.character(test)) ## 先转换为字符,然后转换为数值 阅读全文
posted @ 2022-08-22 23:09 小鲨鱼2018 阅读(314) 评论(0) 推荐(0) 编辑