cheat()
function (quarto and devtools).cheat()
when no arguments are provided.slice_ht()
, a modified version of dplyr::slice_*() that pulls from the head and tail.Added experimental helper functions for searching Stack Overflow and Google
stackoverflow()
and alias so()
search Stack Overflow for the terms you pass. Automatically adds the "[r]" tag.
google()
searches Google for the terms you pass. Automatically adds the required "R" tag and omits results from web sites that provide the same information as the help documentation in R.
so_last_error()
and google_last_error()
collect the traceback of the most recent error and searches for it using Stack Overflow and Google, respectively. Automatically adds the R tag and (for google) omits results from web sites that have duplicated the R manual.quote_values()
which converts a series of comma separated values into a vector input format. Copy of Hmisc::Cs()
for convenience.ic_visdat_grouped()
which extends visdat to allow separate plots grouped by a variable in the data. This is very useful for annual data or other groupings that may explain missinginess.ic_scale_si_unit()
which converts numeric values to International System unitsic_scale_big_dollar()
which converts numeric values to dollar units using suffixes, ie: 1000 becomes \$1k.%ni%
(not in), the opposite of %in%xview()
which opens a table in Excel.\common_vars()
, which shows common variable names between two or more tibbles.wc()
(write clip) which copies an object to the clipboard. If no object is passed, it defaults to .Last.value
.huck()
, a negation of purrr::pluck()
which discards an element from a list using tidyselect specifications.deselect()
, a negation of dplyr::select()
(ie select(-c(...))
) since wrapping tidyselect vars in c() annoys me.fct_case_when()
, an implementation of dplyr::case_when()
where the output is an ordered factor in the order of the conditions.zscore()
as a convenience function wrapper around scale()
that returns a vector instead of a matrix.cheat()
which lists cheatsheets and opens the selected one.idf()
(ID filter). This function makes it easy to filter on a key column in multiple tables from the same dataset. The key column is set in options (function will ask for it if it is not set already) so that it isn't necessary to type it with each call, and the previous key value is is used until it is updated. See ?idf for details.state_locations()
which returns a tibble of the location of U.S. states on a map (top, middle, bottom) and can handle Albers. Useful for dynamically adjusting pop-up directions (above/below) on maps to prevent panning.ic_update
which checks for a new dev version of integral
on github, and if found automatically unloads integral
, downloads the new version and installs it, and reloads integral
.integral
ic_news()
which shows news updates for version bumpsAdd the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.