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

Export %||% #109

Closed
hadley opened this issue Oct 22, 2015 · 4 comments
Closed

Export %||% #109

hadley opened this issue Oct 22, 2015 · 4 comments

Comments

@hadley
Copy link
Member

@hadley hadley commented Oct 22, 2015

No description provided.

@hadley
Copy link
Member Author

@hadley hadley commented Oct 24, 2015

Also add ``%?% <- function(x, y) if (length(x) > 0) y ? (inspired by C# ?. operator)

Loading

@hadley
Copy link
Member Author

@hadley hadley commented Oct 24, 2015

Don't need exact equivalent because NULL$a$b$c$d is ok - since R already has "safe" navigation, maybe the variant should throw an error if the value is not available?

Loading

@hadley
Copy link
Member Author

@hadley hadley commented Oct 24, 2015

Plus vectorised version for ifelse(is.na(category), "Miscellaneous", category) - that's mostly already handled by tidyr::replace_na() ?

Loading

@hadley
Copy link
Member Author

@hadley hadley commented Nov 11, 2015

Fixed in 9b1c44b

Loading

@hadley hadley closed this Nov 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant