Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle NA_STRING #8

Open
qinwf opened this issue May 7, 2016 · 5 comments
Open

Handle NA_STRING #8

qinwf opened this issue May 7, 2016 · 5 comments

Comments

@qinwf
Copy link
Owner

qinwf commented May 7, 2016

No description provided.

qinwf pushed a commit that referenced this issue May 8, 2016
qinwf pushed a commit that referenced this issue May 8, 2016
@gagolews
Copy link

gagolews commented May 8, 2016

The desired strategy is to "return NA if the corresponding input is missing".

Btw, will the functions be vectorized with respect to both the "haystack" and the "needle" (e.g., n strings, 1 regex; 1 string, n regexes etc.?)

@qinwf
Copy link
Owner Author

qinwf commented May 8, 2016

Yes. Return the same result as stringi and stringr would be easier for users to learn and use. These two packages provide user-friendly APIs.

I think I can learn from stringi package stri__recycling_rule function.

qinwf pushed a commit that referenced this issue May 8, 2016
qinwf pushed a commit that referenced this issue May 8, 2016
@gagolews
Copy link

gagolews commented May 8, 2016

sure, give it a try;

BTW, this is not an exported function but in some of the cases you may call stringi functions from C code directly, take a look at https://github.com/gagolews/ExampleRcppStringi

qinwf pushed a commit that referenced this issue May 9, 2016
@tdhock
Copy link

tdhock commented Jun 9, 2016

about vectorizing "1 string, n regexes" -- what is the use case? I only use the other "n strings, 1 regex" version

@tdhock
Copy link

tdhock commented Jun 9, 2016

btw for the n string, n regexes case there is https://github.com/tdhock/revector

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants