Closed geotheory closed 5 years ago
This is vectorized in the same way c(1,10,100) * c(2, 3)
yields c(2,30,200)
, see ?'stringi-arguments'
Ah ok thanks. I wonder if the line for each string in str, if there is at least one match to a corresponding pattern
might be potentially misleading? It seems to me the only way it can be accurate is for there to be much more to corresponding
than is clear from the rest of the page. Bottom line is few of us have time to read all docs for a package!
Great package though - R would be much harder without :)
Noting other issues around multiple patterns, I'm still unclear why this warning appears:
The output TRUE TRUE TRUE is fine. The documentation for
stri_detect
statesfor each string in str, if there is at least one match to a corresponding pattern
, where pattern is defined ascharacter vector defining search patterns
. I don't see any reason why this should prompt a warning. Where does documentation saypattern
vector length should have a length-factor relationship withstr
vector length? And what would be the rationale for such an implementation?