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

Add a notmissing function. #94

Open
pdeffebach opened this issue Feb 21, 2019 · 2 comments
Open

Add a notmissing function. #94

pdeffebach opened this issue Feb 21, 2019 · 2 comments

Comments

@pdeffebach
Copy link
Contributor

With broadcasting, .!ismissing.(x) is awkward to write. It would be nice to have a function notmissing that would get around this.

@nalimilan
Copy link
Member

It looks a bit funny, but duplicating functions doesn't sound great...

@ararslan
Copy link
Member

Also note that there are other ways you can write it depending on the end goal. A direct replacement would be map(!ismissing, x), but to index into a structure, filtering out missing values, you could get indices with findall(!ismissing, x), or use filter if an appropriate method exists for your structure.

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