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

Passing character vectors with missing values to str_view() #217

Closed
tomwwagstaff opened this issue Feb 13, 2018 · 0 comments
Closed

Passing character vectors with missing values to str_view() #217

tomwwagstaff opened this issue Feb 13, 2018 · 0 comments
Labels
bug

Comments

@tomwwagstaff
Copy link

@tomwwagstaff tomwwagstaff commented Feb 13, 2018

When I call str_view on a character vector with missing values, the viewer just returns a screen saying "NA". Try this:

foo<- c("cat", "cot", "hat", "blah", NA)
str_view(foo, pattern = "t$")

Is it possible to have it display as normal with the missing values showing as NA, or to filter out the missing values automatically?

@hadley hadley added the bug label May 8, 2018
@hadley hadley closed this in 7ff5460 May 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants