R语言的正则表达式

作者: 茶苯海 | 来源:发表于2017-02-13 12:17 被阅读224次

R语言之字符函数和正则表达式
R语言的正则表达式(1)http://jingyan.baidu.com/article/8cdccae966e85f315413cd15.html

基本语法:

grep(pattern, x, ignore.case = FALSE, perl = FALSE, value = FALSE,
     fixed = FALSE, useBytes = FALSE, invert = FALSE)

grepl(pattern, x, ignore.case = FALSE, perl = FALSE,
      fixed = FALSE, useBytes = FALSE)

sub(pattern, replacement, x, ignore.case = FALSE, perl = FALSE,
    fixed = FALSE, useBytes = FALSE)

gsub(pattern, replacement, x, ignore.case = FALSE, perl = FALSE,
     fixed = FALSE, useBytes = FALSE)

regexpr(pattern, text, ignore.case = FALSE, perl = FALSE,
        fixed = FALSE, useBytes = FALSE)

gregexpr(pattern, text, ignore.case = FALSE, perl = FALSE,
         fixed = FALSE, useBytes = FALSE)

regexec(pattern, text, ignore.case = FALSE, perl = FALSE,
        fixed = FALSE, useBytes = FALSE)

相关文章

网友评论

    本文标题:R语言的正则表达式

    本文链接:https://www.haomeiwen.com/subject/wqgoittx.html