Displaying 3 results from an estimated 3 matches for "saporta".
Did you mean:
soporta
2019 Aug 15
4
Feature request: non-dropping regmatches/strextract
...m <- regexec(pattern, x, perl=perl, useBytes=useBytes)
result <- regmatches(x, m)
if(isTRUE(drop)){
unlist(result)
} else if(isFALSE(drop)) {
unlist({result[lengths(result)==0] <- NA_character_; result})
} else {
stop("Invalid argument for `drop`")
}
}
Based on?Ricardo Saporta's response to?How to prevent regmatches drop non matches?
--CG
2019 Aug 15
0
Feature request: non-dropping regmatches/strextract
...> result <- regmatches(x, m)
>
> if(isTRUE(drop)){
> unlist(result)
> } else if(isFALSE(drop)) {
> unlist({result[lengths(result)==0] <- NA_character_; result})
> } else {
> stop("Invalid argument for `drop`")
> }
> }
>
> Based on Ricardo Saporta's response to How to prevent regmatches drop non
> matches?
>
> --CG
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>
[[alternative HTML version deleted]]
2019 Aug 29
0
Feature request: non-dropping regmatches/strextract
...> result <- regmatches(x, m)
>
> if(isTRUE(drop)){
> unlist(result)
> } else if(isFALSE(drop)) {
> unlist({result[lengths(result)==0] <- NA_character_; result})
> } else {
> stop("Invalid argument for `drop`")
> }
> }
>
> Based on Ricardo Saporta's response to How to prevent regmatches drop non
> matches?
>
> --CG
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>
[[alternative HTML version deleted]]