当前位置:网站首页>列表变成向量 列表变向量 list vector
列表变成向量 列表变向量 list vector
2022-06-30 15:48:00 【youngleeyoung】
> as.vector(unlist(intersected_fibrosis_genes))
多个向量取交集
假如有 3 个基因列表存储在 R 的向量,此时 intersect(intersect(A, B), C) 可以取三者交集;假如 10 个基因列表呢? 9 层嵌套 intersect 恐怕丢人,写个 for 循环也挺麻烦, Reduce 函数就很方便,大概
genes <- Reduce(intersect, list(A, B, C, D …))
作者:BeeBee生信
链接:https://www.jianshu.com/p/58f5429b5402
来源:简书
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
边栏推荐
猜你喜欢

香港回归25周年 香港故宫博物馆正式开放成文化新地标

Observation cloud reached in-depth cooperation with tdengine to optimize enterprise cloud experience

List announced - outstanding intellectual property service team in China in 2021
![[BJDCTF2020]The mystery of ip|[CISCN2019 华东南赛区]Web11|SSTI注入](/img/c2/d6760826b81589781574aebff61f9a.png)
[BJDCTF2020]The mystery of ip|[CISCN2019 华东南赛区]Web11|SSTI注入

山西化工园区智能化管控平台建设时间表
![[machine learning] K-means clustering analysis](/img/5f/3199fbd4ff2129d3e4ea518812c9e9.png)
[machine learning] K-means clustering analysis

华为帐号多端协同,打造美好互联生活

HMS core audio editing service 3D audio technology helps create an immersive auditory feast

牛客网:乘积为正数的最长连续子数组

编译丨迅为STM32P157开发板编译U-Boot源码
随机推荐
jspreadsheet/CE JExcel数据字段比给的字段(columns)多会导致空白列的问题解决方案
Niuke: how many different binary search trees are there
Good partner for cloud skill improvement, senior brother cloud of Amazon officially opened today
【微信小程序】小程序的宿主环境
IO流_递归
redis淘汰策略
[Verilog basics] summary of some concepts about clock signals (clock setup/hold, clock tree, clock skew, clock latency, clock transition..)
2020蓝桥杯国赛B组-搬砖-(贪心排序+01背包)
Bidding announcement: remote disaster recovery project of Shenzhen Finance Bureau database
Exception class_ Log frame
Hologres共享集群助力淘宝订阅极致精细化运营
山西化工园区智能化管控平台建设时间表
观测云与 TDengine 达成深度合作,优化企业上云体验
Carry two load balancing notes and find them in the future
Deep learning - (2) several common loss functions
Symantec electronic sprint technology innovation board: Tan Jian, the actual controller, is an American who plans to raise 620million yuan
数据安全合规之后,给风控团队带来了新的问题
安全帽佩戴检测算法研究
数据库系统概论习题册
register_chrdev和cdev_init cdev_add用法区别