09 2019 档案

R 配色(挑花眼的色卡19色)
摘要:效果如下: 20色: 24色 阅读全文

posted @ 2019-09-18 16:14 若流芳千古 阅读(2510) 评论(1) 推荐(0)

R which
摘要:1 setwd("E:/courses/molecular biology/homework1st") 2 genes <- read.table('genes.txt',sep = '\t',header = T) 3 4 chrID<-c("chr1","chr2","chr3","chr4","chr5","chr6","chr7","chr8","chr9 阅读全文

posted @ 2019-09-15 17:24 若流芳千古 阅读(325) 评论(0) 推荐(0)

Leetcode 17. Letter Combinations of a Phone Number(水)
摘要:17. Letter Combinations of a Phone Number Medium Medium Given a string containing digits from 2-9 inclusive, return all possible letter combinations t 阅读全文

posted @ 2019-09-14 09:45 若流芳千古 阅读(199) 评论(0) 推荐(0)

R 动态定义变量名 assign
摘要:主要部分“ 阅读全文

posted @ 2019-09-14 09:35 若流芳千古 阅读(1589) 评论(0) 推荐(0)

R list和data frame 排序
摘要:pathway_name = rownames(g1) tm <- list('P-value' = c(), 'Pathway_name' = c()) for(i in 1:dim(g1)[1]){ results<- t.test(g1[i,],g2[i,])$p.value print(results) tm$`P-value`<-append(tm$`P-value`,results) 阅读全文

posted @ 2019-09-13 10:56 若流芳千古 阅读(982) 评论(2) 推荐(0)

Leetcode 16. 3Sum Closest(指针搜索)
摘要:16. 3Sum Closest Medium 131696FavoriteShare 16. 3Sum Closest Medium 131696FavoriteShare Medium Given an array nums of n integers and an integer target 阅读全文

posted @ 2019-09-11 14:41 若流芳千古 阅读(274) 评论(0) 推荐(0)

R 画散点图
摘要:ggplot(data=mtcars, aes(x=wt, y=mpg)) + geom_point() + labs(title="Automobile Data", x="Weight", y="Miles Per Gallon")+ theme(plot.title = element_tex 阅读全文

posted @ 2019-09-10 14:49 若流芳千古 阅读(315) 评论(0) 推荐(0)

R 文件读写
摘要:Write.table()函数的用法read.table()非常相似,只不过它把数据框写入文件而不是从文件中读取。参数和选项: write.table(x, file = "", append = FALSE, quote = TRUE, sep = " ",eol = "\n", na = "NA 阅读全文

posted @ 2019-09-04 19:23 若流芳千古 阅读(1264) 评论(0) 推荐(0)

Leetcode 15. Sum(二分或者暴力或者哈希都可以)
摘要:15. 3Sum Medium 15. 3Sum Medium Medium Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find all unique 阅读全文

posted @ 2019-09-01 20:04 若流芳千古 阅读(212) 评论(0) 推荐(0)

导航