Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
3
Task/Regular-expressions/R/regular-expressions-1.r
Normal file
3
Task/Regular-expressions/R/regular-expressions-1.r
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
pattern <- "string"
|
||||
text1 <- "this is a matching string"
|
||||
text2 <- "this does not match"
|
||||
1
Task/Regular-expressions/R/regular-expressions-2.r
Normal file
1
Task/Regular-expressions/R/regular-expressions-2.r
Normal file
|
|
@ -0,0 +1 @@
|
|||
grep(pattern, c(text1, text2)) # 1
|
||||
1
Task/Regular-expressions/R/regular-expressions-3.r
Normal file
1
Task/Regular-expressions/R/regular-expressions-3.r
Normal file
|
|
@ -0,0 +1 @@
|
|||
regexpr(pattern, c(text1, text2))
|
||||
1
Task/Regular-expressions/R/regular-expressions-4.r
Normal file
1
Task/Regular-expressions/R/regular-expressions-4.r
Normal file
|
|
@ -0,0 +1 @@
|
|||
gsub(pattern, "pair of socks", c(text1, text2))
|
||||
Loading…
Add table
Add a link
Reference in a new issue