%in%/match equivalent for two environment
arguments
drops rows with NA values in specified fields
convert separate lists of dates and times to POSIXlt objects
running totals of number of non-NA values in consecutive fields
update a set of data frame field names
return a new environment with names and values swapped
count non-numeric elements
Fast convert integer vector to character vector
Convert integers to strings as quickly as possible
all unique combinations of a vector and all its non-zero subsets
check if a time is valid in 24h clock
Which elements of a character vector are numeric
get_numeric_char_field_names
Find columns which are numeric
selects columns from a data frame using an optimization function
inverse of %in%
Determine whether a value is, or should be, `NA`
minimal basic pre-processing metrics
get items or numerics that would be dropped in a merge
count NA in vector
get names of the factor fields in a data frame
Fix NA-like strings to be NA (or other value of choice)
is the object a Date
inverse which
flatten a list
list all functions in a package
Summarize objects
Return percentage string to given significant figures
show largest objects
List all items in a package
filter data with diagnostics
fill out missing combinations of factors with NA
determine whether a list is nested
get NA field names from data frame
Extract code from knitr vignette and source it
Take clipboard contents, and write sorted character vector back
Update github_install packages
is every row sorted?
mimic the R CMD check
test
Make a list using input argument names as names
convert factor or vector to numeric without warnings
convert to character vector without warning
Are we running on Linux, Mac or Windows?
Build with current Makevars, but with clang scan-build static analysis
Tools for testing and data manipulation not found elsewhere
generate random Dates or POSIXlt test datetimes
Convert logical columns of data frame to 0s and 1s
create environment from vector
Merge better
trim null or empty values from a list
read .xlsx
file, interpret as CSV, and return a data frame
create extreme random numbers
Find minimum R version required for package
return proportion of NA values per field
count numeric elements
proportion of non-descending rows in matrix
Load packages with library
, installing any which are missing
recursive remove
trim null or empty values from a list
Proportion of NA values in a vector
dput a testthat test
strip whitespace from ends of each string in given character vector
stringr
does this, but here we have a small amount of base R code
return all matches for regular expression
Take dataframe, and convert any columns with just two categories into logical
Match across columns for multiple lookup values
read file from zip at URL
return the actual matches from a bracketed regex
Match pairs of strings to get named vector
Zero NA values in a data.frame
zeroes
merge lists by names
Generate all permutations of input, reusing values in each result row
Fast Factor Generation
Convert factor into a data.frame of logicals
Print integers with percentage of total rounded to integer
Compile and test package with and without profile guided optimization
numbers_to_long_and_float
convert numbers to long and float types
Convert a number into rounded integer percentage string
strip all whitespace
strip a string so that it can be used as a variable name in a formula.
Generate all permutations of input
Save given variable in package data directory
Shuffle a vector
unzip a single file from URL
Unzip file to data-raw
Get the first/only argument of the last run command
bad input data for tests
expect_that_combine_all_args
alternative expect_that
from testthat
which permutes all
the inputs to a function which should give the same result where n args >=2
and the function is commutative.
names of fields which are numeric, binary or combinations thereof
build simple linear formula from variable names
extreme numbers
Drop fields with duplicate data