当前位置:网站首页>列表变成向量 列表变向量 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
来源:简书
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
边栏推荐
- 牛客网:有多少个不同的二叉搜索树
- redis淘汰策略
- Cmakelists Basics
- 中航无人机科创板上市:市值385亿 拳头产品是翼龙无人机
- 腾讯二面:@Bean 与 @Component 用在同一个类上,会怎么样?
- 【微信小程序】常用组件基本使用(view/scroll-view/swiper、text/rich-text、button/image)
- 2020 Blue Bridge Cup group B - move bricks - (greedy sorting +01 backpack)
- Mathematical modeling for war preparation 33- grey prediction model 2
- 八大基本排序(详解)
- MC Instruction Decoder
猜你喜欢

编译丨迅为STM32P157开发板编译U-Boot源码

Deep learning - (2) several common loss functions
![[wechat applet] the hosting environment of the applet](/img/ee/0f1dee4a26eb62c2268484c1b59edf.png)
[wechat applet] the hosting environment of the applet

redis淘汰策略

声网自研传输层协议 AUT 的落地实践丨Dev for Dev 专栏

容联云首发基于统信UOS的Rphone,打造国产化联络中心新生态

Restartprocessifvisible process
![[bjdctf2020]the mystery of ip|[ciscn2019 southeast China division]web11|ssti injection](/img/c2/d6760826b81589781574aebff61f9a.png)
[bjdctf2020]the mystery of ip|[ciscn2019 southeast China division]web11|ssti injection

Wechat emoticons are written into the judgment, and the OK and bomb you send may become "testimony in court"

Niuke network: longest continuous subarray with positive product
随机推荐
ArcMap operation series: 80 plane to latitude and longitude 84
Talk about telecommuting | community essay solicitation
STL教程7-set、pair对组和仿函数
go-micro教程 — 第一章 快速入门
Multi terminal collaboration of Huawei accounts to create a better internet life
Observation cloud reached in-depth cooperation with tdengine to optimize enterprise cloud experience
POJ Project Summer
halcon知识:区域专题【07】
备战数学建模34-BP神经网络预测2
In order to make remote work unaffected, I wrote an internal chat room | community essay
观测云与 TDengine 达成深度合作,优化企业上云体验
Research on helmet wearing detection algorithm
备战数学建模33-灰色预测模型2
快照和备份
TCP socket and TCP connection
香港回归25周年 香港故宫博物馆正式开放成文化新地标
I implement "stack" with C I
Exception class_ Log frame
利用PIL进行不失真的resize
simpleITK读取nii遇到ITK only supports orthonormal direction cosines的错误