ljxue的个人博客分享 http://blog.sciencenet.cn/u/ljxue Liangjiao Xue, Bioinformatics is my favorite.

博文

R code to split strings

已有 2370 次阅读 2014-10-21 04:24 |个人分类:Bioinformatics|系统分类:科研笔记| code, Split

get_treat= function (x,in_split="\_",perl = T){
   strsplit(x, in_split)[[1]][2]
}

treat = as.character(sapply(samples_in ,get_treat))




https://wap.sciencenet.cn/blog-285393-837295.html

上一篇:Vcf.pm and tabix
下一篇:PSL format for blat software
收藏 IP: 128.192.8.*| 热度|

0

该博文允许注册用户评论 请点击登录 评论 (0 个评论)

数据加载中...
扫一扫,分享此博文

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-5-16 01:37

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部