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

Comments

@hadley
Copy link
Member

commented Oct 22, 2015

No description provided.

@hadley

This comment has been minimized.

Copy link
Member Author

commented Oct 24, 2015

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

@hadley

This comment has been minimized.

Copy link
Member Author

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

This comment has been minimized.

Copy link
Member Author

commented Oct 24, 2015

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

@hadley

This comment has been minimized.

Copy link
Member Author

commented Nov 11, 2015

Fixed in 9b1c44b

@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
Projects
None yet
1 participant
You can’t perform that action at this time.