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 allowmissing() and disallowmissing() convenience functions #64

Merged
merged 1 commit into from
Dec 4, 2017

Conversation

nalimilan
Copy link
Member

@nalimilan nalimilan commented Dec 2, 2017

As requested by several people, given that the convert() call is complex
and not easy to discover.

Fixes #60.

As requested by several people, given that the convert() call is complex
and not easy to discover.
@cjprybol cjprybol merged commit d872a2a into master Dec 4, 2017
@cjprybol cjprybol deleted the nl/allowmissing branch December 4, 2017 23:40

See also: [`disallowmissing`](@ref)
"""
allowmissing(x::AbstractVector{T}) where {T} = convert(AbstractArray{Union{T, Missing}}, x)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops. Didn't catch this until after I merged. I think these are supposed to be x::AbstractArray as shown in the docstring. I'll open a PR with a fix

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

Successfully merging this pull request may close these issues.

2 participants