a$type <- 'Up'
a$type[a$b < -1] <- 'down'
R 根据某一列的数据创建一个新的列表代表属性
最新推荐文章于 2022-11-29 08:36:17 发布
a$type <- 'Up'
a$type[a$b < -1] <- 'down'