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 commented Oct 22, 2015

No description provided.

@hadley
Copy link
Member Author

hadley commented Oct 24, 2015

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

@hadley
Copy link
Member Author

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?

@hadley
Copy link
Member Author

hadley commented Oct 24, 2015

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

@hadley
Copy link
Member Author

hadley commented Nov 11, 2015

Fixed in 9b1c44b

@hadley hadley closed this as completed 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
Development

No branches or pull requests

1 participant