当前位置:网站首页>列表变成向量 列表变向量 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
来源:简书
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
边栏推荐
- Wechat emoticons are written into the judgment, and the OK and bomb you send may become "testimony in court"
- php7.3 centos7.9安装sqlserver扩展
- Tencent two sides: @bean and @component are used on the same class. What happens?
- List announced - outstanding intellectual property service team in China in 2021
- 【微信小程序】常用组件基本使用(view/scroll-view/swiper、text/rich-text、button/image)
- CMakeLists 基础
- go-micro教程 — 第一章 快速入门
- [Verilog quick start of Niuke online question series] ~ bit splitting and operation
- 为了使远程工作不受影响,我写了一个内部的聊天室 | 社区征文
- IO stream_ recursion
猜你喜欢
TCP Socket与TCP 连接
redis数据结构分析
异常类_日志框架
快照和备份
香港回归25周年 香港故宫博物馆正式开放成文化新地标
RT thread heap size setting
数据库系统概论习题册
[Verilog basics] summary of some concepts about clock signals (clock setup/hold, clock tree, clock skew, clock latency, clock transition..)
牛客网:乘积为正数的最长连续子数组
Deep learning - (2) several common loss functions
随机推荐
Lambda表达式_Stream流_File类
In order to make remote work unaffected, I wrote an internal chat room | community essay
微信表情符号写入判决书,你发的OK、炸弹都可能成为“呈堂证供”
TCP Socket与TCP 连接
观测云与 TDengine 达成深度合作,优化企业上云体验
搬运两个负载均衡的笔记,日后省的找
Deep learning - (2) several common loss functions
HMS core audio editing service 3D audio technology helps create an immersive auditory feast
Rong Lianyun launched rphone based on Tongxin UOS to create a new ecology of localization contact center
Mathematical modeling for war preparation 33- grey prediction model 2
荣盛生物冲刺科创板:拟募资12.5亿 年营收2.6亿
Restartprocessifvisible process
STL教程7-set、pair对组和仿函数
9:第三章:电商工程分析:4:【通用模块】;(待写……)
RT-Thread 堆区大小设置
JS ES5也可以创建常量?
More dragon lizard self-developed features! Production available Anolis OS 8.6 officially released
聊聊远程办公那些事儿 | 社区征文
Home office discussion on the experience of remote assistance to quickly improve efficiency | community essay solicitation
Halcon knowledge: matrix topic [02]