摘要:
1、 dat <- read.table("test.map",header = F) dat2 <- dat[c(1,4)] unique(sort(dat2$V1)) dat2[dat2$V1 == "X",]$V1 = 10000 dat2$V1 <- as.numeric(dat2$V1) 阅读全文
posted @ 2021-07-06 13:23
小鲨鱼2018
阅读(225)
评论(0)
推荐(0)
摘要:
1、 a <- c(1,3,10,6,2) class(a) order(a) ## 数值型, 排序结果 10 > 2 b <- c(1,3,10,6,2,"x") class(b) order(b) ##字符型,排序结果 10 < 2 阅读全文
posted @ 2021-07-06 12:13
小鲨鱼2018
阅读(323)
评论(0)
推荐(0)