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 an unexpected problem or unintended behavior

Comments

@tomwwagstaff
Copy link

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 an unexpected problem or unintended behavior label May 8, 2018
@hadley hadley closed this as completed in 7ff5460 May 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants