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 support for sf [WIP] #1990

Merged
merged 58 commits into from
Feb 9, 2017
Merged

Add support for sf [WIP] #1990

merged 58 commits into from
Feb 9, 2017

Conversation

hadley
Copy link
Member

@hadley hadley commented Jan 9, 2017

No description provided.

# Wrapper around is.finite to handle list cols
is_finite <- function(x) {
if (typeof(x) == "list") {
!vapply(x, is.null, logical(1))
Copy link
Contributor

Choose a reason for hiding this comment

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

should this be !vapply(x, is.finite, logical(1))?

Copy link
Member Author

Choose a reason for hiding this comment

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

Anything could be inside that list (like another list) - being finite doesn't really have a meaning for arbitrary elements so this just drops rows where the list-col is empty.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ahhh, yea, makes sense

@hadley hadley merged commit 0d402da into master Feb 9, 2017
@hadley hadley deleted the sf branch May 10, 2018 17:03
@lock
Copy link

lock bot commented Nov 6, 2018

This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/

@lock lock bot locked and limited conversation to collaborators Nov 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants