摘要: 001、 root@PC1:/home/test2# ls outcome.ped test.py root@PC1:/home/test2# cat outcome.ped ## 测试数据 1 G G C C G G 2 G G G C G G 3 G G C C G G 4 G G C C G 阅读全文
posted @ 2022-08-05 16:13 小鲨鱼2018 阅读(82) 评论(0) 推荐(0) 编辑
摘要: 001、 data <- data.frame(x1 = c(1, 2, 3, 4), x2 = c(5, 6, 7, 8)) ## 测试数据框 data transform(data, x1 = x1 + 10) ## 修改列 transform(data, x1 = x1 + 10, x2 = 阅读全文
posted @ 2022-08-05 14:24 小鲨鱼2018 阅读(307) 评论(0) 推荐(0) 编辑
摘要: 1、在任意列之间插入新数据 a <- 1:5 b <- letters[1:5] c <- LETTERS[1:5] d <- 5:1 dat <- data.frame(a, b, c, d) dat x <- rep("k", 5) cbind(dat[,1:2], x, dat[,3:4]) 阅读全文
posted @ 2022-08-05 14:12 小鲨鱼2018 阅读(850) 评论(0) 推荐(0) 编辑
摘要: 001、 root@PC1:/home/test2# ls outcome.map test.map root@PC1:/home/test2# cat outcome.map ## 测试数据 1 snp1 0 55910 1 snp2 0 85204 1 snp3 0 122948 1 snp4 阅读全文
posted @ 2022-08-05 12:28 小鲨鱼2018 阅读(581) 评论(0) 推荐(0) 编辑
摘要: 001、 ctrl + a:回到行首 ctrl + e:回到行末 ctrl + u:剪切行首到光标处的位置 ctrl + k:剪切光标所在位置到末尾的内容 ctrl + y:粘贴最近剪切的内容 阅读全文
posted @ 2022-08-05 00:33 小鲨鱼2018 阅读(173) 评论(0) 推荐(0) 编辑