R中gsub替换函数的参数如下
gsub(pattern, replacement, x, ignore.case = FALSE, perl = FALSE,
fixed = FALSE,...useBytes = FALSE)
其中pattern是要替换的字符,replacement是替换成的字符,x是对应的string或string vector。...vector举例如下:
> x <- c("R Tutorial","PHP Tutorial", "HTML Tutorial")
> gsub("Tutorial","Examples",x)
#将...Tutorial替换成Examplers
[1] "R Examples" "PHP Examples" "HTML Examples"
还有其他的一些例子来灵活使用这个函数,结合正则表达式。...duplicated(clin$case_submitter_id)
#提取非重复的样本的临床信息
clin=clin[index,]
可以得到如下临床信息表
前面给大家讲过☞肿瘤TNM分期