Skip to contents

Character

enclose()
Enclose String with Specified Characters
encloseBr()
Enclose String with Brackets
getChar()
Get a Character at a Specific Index
substrEnd()
Extract Substring from Start to End Difference

Color

getAvgHex()
Compute the Average of Hex Colors
scaleHex()
Scale the Brightness of a Hex Color

Data Initialization

createHash()
Create a Hash Table
initDataFrameWithColnames()
Initialize a DataFrame with Column Names
initEmptyTable()
Initialize an Empty Table
initList()
Initialize a List
initV()
Initialize a Vector
namedNumericToTable()
Convert Named Numeric Vector to Table
tableToNumeric()
Convert a Table to Numeric

File System

listFiles()
List Only Files in a Directory

Ggplot

getPlotDims()
Get the dimensions of a ggplot Object

Higher Order Functions

createMutator()
Create a Mutator Function

Indexing

getfirst()
Get the First Elements of a Vector or List
getlast()
Get the Last Elements of a Vector or List

Interactivity

quietly()
Suppress Messages and Output

Iteration

enumerateit()
Enumerate Elements with Indices
getUniquePairsUpTo()
Generate Unique Pairs Up To a Number
ind()
Get Index from Enumerated Element
val()
Get Value from Enumerated Element by Index
val1()
Get First Value from Enumerated Element
zipit()
Zip Multiple Vectors or Lists

Math

add()
Add Two Objects
bound()
Bound a Number within a Range
divide()
Divide Two Numbers
isBound()
Check if a Number is within a Range
isEven()
Check if a Number is Even
isOdd()
Check if a Number is Odd
multiply()
Multiply Two Numbers
subtract()
Subtract Two Numbers

Meta Programming

evalText()
evaluates a string as R code, and stops if an error occurs

Package Development

findMissingRdSections() fmrs() experimental
Find Missing Sections in Rd Files
getPkgKeywords() experimental
Get Keywords from R Package Documentation

Package Loading

createPkgLoader() experimental
Create Package Loader Function

Regex

greplDir() experimental
Search for a Pattern in Files within a Directory
joinRegex()
Join regex expressions by union
rmByName()
Remove Elements with Specified Name Regex

Spelling

closestWord()
Find the Closest Word in a Set to a Given Word
isCamelCase()
Check if String is camelCase
isPascalCase()
Check if String is PascalCase
isSnakeCase()
Check if String is snake_case
isVowel()
Check if a Character is a Vowel
prependIndefArticle() pia()
Prepend an Indefinite Article to a String
splitCamel() splitPascal()
Split CamelCase or PascalCase Strings
splitSnake()
Split Snake Case String
startsWithVowel()
Check if a String Starts with a Vowel
stripSpaces()
Remove Spaces from a String
trySplitWords()
Try to Split Words Based on Naming Convention

Testing

initTestthat()
Initialize Testthat Files
removeVdiffrNewSnapShots() rmns() experimental
Remove New Snapshots from vdiffr Tests
test_quietly_that()
Run a Testthat test Quietly

Wrangling

colToRownames()
Convert a Column to Row Names
fixColnames() experimental
Fix Column Names
mutateToRownames() experimental
Mutate columns to Row Names
rownamesToCol()
Convert Row Names to a Column
setColnames()
Set Column Names
setNames()
Set Names of an Object
setRownames()
Set Row Names

Validation

getFailStr() experimental
Get Failure Message as a character
stopp()
Custom Stop Function Without Call
validateObject()
Validate Object
warningp()
Custom Warning Function Without Call