This function allows you to pipe forward functions to open its help page.
h(x)
x | expression |
---|
https://stackoverflow.com/a/52080518/6873133
None
Using the pipe operator is commonplace and can influence the way you think
about using functions. When looking up help pages, it is typical to add a
question mark ?
to the beginning of a function open its help page (e.g.,
?dim
). This function allows you to write left-to-right and simply pipe the
function of interest into h
to open its help page.
# Simple single function eval %>% h # Simple single function with parentheses dim() %>% h # Function but specifying package dplyr::across %>% h # Function but specifying package with parentheses dplyr::summarise() %>% h # Fails iris %>% dplyr::mutate %>% h#>#>