Skip to contents

All functions

all_are_distinct()
Test if all elements of a vector are unique
all_are_identical()
Test if all elements of a vector are identical
as_scalar()
Convert vector if identical elements to scalar
assert()
Assert a condition
assert_all()
Assert all elements of a vector or list are TRUE
assert_namespace()
Assert a package is installed
camelCase()
Turn a character vector to camelCase
comma()
Collapse text vectors with a comma
commaset()
Collapse text vectors with a comma (no duplicates)
compact()
Remove NULLs from an object (usually a list)
dupes()
Return (unique) duplicated elements of a vector or rows of a data.frame
equalish() equalish_frac()
Check for equality within a tolerance level
fmt_class() class_fmt()
Format class of an object
is_blank()
Check if a String is Blank
is_candidate_key()
Test if a Vector or Combination of Vectors is a Candidate Key
is_empty()
Check if Object has length 0
is_equal_length()
Check if Objects have the same length
is_error() is_try_error() is_scalar() is_POSIXct() is_scalar_POSIXct() is_POSIXlt() is_scalar_POSIXlt() is_POSIXt() is_scalar_POSIXt() is_Date() is_scalar_Date() is_scalar_list() is_scalar_atomic() is_scalar_logical() is_scalar_integer() is_scalar_factor() is_scalar_list() is_scalar_numeric() is_scalar_character() is_vector() is_bool() is_scalar_integerish() is_n() is_n0() is_not_distinct_from() is_distinct_from() is_windows_path() is_dir() is_empty_dir()
Convenient predicate functions
is_integerish()
Check if Object is Integer-like
is_scalar_bool()
Check if Object is a Boolean
path_tidy()
Clean up paths to make them comparable, inspired by fs::path_tidy()
ptrunc()
Paste and Truncate
rd_describe_str()
Create description string for listlike R objects Rd documentation
sfmisc sfmisc-package
Private utility functions
url_tidy()
Clean up urls to make them comparable
use_sfmisc()
Use sfmisc functions in current package
validate()
Simple data validation
walk()
Apply a function to each element of a list or vector (without returning anything)