上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 31 下一页

2019年9月14日

R 动态定义变量名 assign

摘要: 主要部分“ 阅读全文

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

2019年9月13日

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)

2019年9月11日

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)

2019年9月10日

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)

2019年9月4日

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)

2019年9月1日

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)

2019年8月31日

Leetcode 14. Longest Common Prefix(水)

摘要: 14. Longest Common Prefix Easy Easy Write a function to find the longest common prefix string amongst an array of strings. If there is no common prefi 阅读全文

posted @ 2019-08-31 11:04 若流芳千古 阅读(167) 评论(0) 推荐(0)

Leetcode 13. Roman to Integer(水)

摘要: 13. Roman to Integer Easy Easy Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M. Symbol Value I 1 V 5 X 10 L 50 C 100 阅读全文

posted @ 2019-08-31 09:38 若流芳千古 阅读(131) 评论(0) 推荐(0)

Leetcode 12. Integer to Roman(打表,水)

摘要: 12. Integer to Roman Medium Medium Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M. Symbol Value I 1 V 5 X 10 L 50 C 阅读全文

posted @ 2019-08-31 08:59 若流芳千古 阅读(234) 评论(0) 推荐(0)

2019年8月30日

Leetcode 11. Container With Most Water(逼近法)

摘要: 11. Container With Most Water Medium Medium Given n non-negative integers a1, a2, ..., an , where each represents a point at coordinate (i, ai). n ver 阅读全文

posted @ 2019-08-30 14:27 若流芳千古 阅读(142) 评论(0) 推荐(0)

上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 31 下一页

导航