Functions Returning Logical

allAreEqual()

are all elements in x the same?

allAreIdentical()

Are all list elements identical to each other?

almostEqual()

Compare Numerical Vectors with Tolerance

atLeastOneRowIn()

At least one row in data frame

containsNulString()

Check for nul String in File

hsValidValue()

Value in Correct English/German Notation?

inRange()

check for values within minimum and maximum value

is.unnamed()

Are List Elements Unnamed?

isEvenNumber()

Check for Even Numbers

isLoaded()

Has a Script Been Loaded (with source)?

isNaInAllColumns()

isNaInAllColumns

isNaInAllRows()

isNaInAllRows

isNaOrEmpty()

NA or the empty string ""?

isNullOrEmpty()

isNullOrEmpty

isOddNumber()

Check for Odd Numbers

matchesCriteria()

Do Data Frame Row Match Given Criteria?

String Functions

appendSuffix()

Append Suffix to (Selected) Character Values

collapsed()

Shortcut to paste(x, collapse = collapse)

commaCollapsed()

Paste With Collapse = ","

defaultLevels()

Default Factor Levels

extractSubstring()

Extract Substrings Defined by Regular Expressions

frenchToAscii()

French Unicode Letter to ASCII Letter(s)

hsCountInStr()

Count Pattern in String

hsQuoteChr()

Quote Character Strings

hsSafeName()

Non-existing desired name

hsSubstSpecChars()

Substitution of Special Characters

hsTrim()

Remove Leading and Trailing Spaces

moveToFront()

Move elements to the start of a vector

multiSubstitute()

Multiple Substitutions

pairwise()

Reorder Strings So That Matching Strings are Neighbours

removeExtension()

Remove File Name Extension

removeSpaces()

Remove all Spaces in String(s)

shorten()

Shorten Strings to a Maximum Length

stringContains()

stringContains

stringEndsWith()

stringEndsWith

stringList()

String of Comma Separated Quoted Strings

stringStartsWith()

stringStartsWith

stringToExpression()

Convert String to Expression

subExpressionMatches()

Find and Extract Regular Expressions from Strings

Input and Output Functions

catAndRun()

Print Debug Messages Before and After Running Code

catLines()

Print Character Vector to the Console

catNewLineIf()

Print New Line Character to the Console if Condition is Met

clearConsole()

Clear the R Console

columnDescriptor()

Column Descriptor

finishAndShowPdf()

Close Device and Open PDF File in Viewer

guessSeparator()

Guess Column Separator Used in File

headtail()

Print First and Last Rows of a Data Frame

hsPrepPdf()

Prepare Writing of PDF File

preparePdf()

Open PDF Device with DIN A4 Dimensions by Default

readArglists()

Read Argument Lists from CSV File

readCsvInputFile()

Read CSV File

readPackageFile()

Read File from Package's extdata Folder

setLoaded()

Set the "loaded" Status for a Script

sourceScripts()

Load R Scripts with source

writeText()

Write Text Lines to a File

Mathematical or Statistical Functions

colMaxima()

Columnwise Maxima

colMinima()

Columnwise Minima

colNaNumbers()

Columnwise Number of NA

colStatisticOneFunction()

Apply Function to All Columns

colStatistics()

Column Statistics

countOrSum()

Count or Sum Up Values Within Groups of rows

countNaInColumn()

Count NA in one Column of a Data Frame

frequencyTable()

Number of value occurrences in columns

getEvenNumbers()

Get even Numbers out of a Vector of Integers

getOddNumbers()

Get odd Numbers out of a Vector of Integers

hsMovingMean()

Moving Mean

linearCombination()

Linear Combination of a Matrix

movingSum()

movingSum

percentage()

Percentage

percentageOfMaximum()

Percentage of Maximum

percentageOfSum()

Percentage of the Sum of Values

quotient()

Quotient

relativeCumulatedSum()

Relative Cumulated Sum

Functions Working on Data Frames

addRowWithName()

Add a Row with a Name

addSuffixToColumns()

Add Suffix to Column Names

asNoFactorDataFrame()

Convert to Data Frame without Factors

columnToDate()

Convert Column in Data Frame To Date

columnwisePercentage()

Columnwise Percentage

dropUnusedFactorLevels()

Drop Unused Factor Levels in all Factor Columns

extractRowRanges()

Extract Row Ranges by Pattern

fullySorted()

Sort a Data Frame by all of its Columns

firstPosixColumn()

data/time column of data frame

getKeywordPositions()

Localise Keywords in Data Frame

hsAddMissingCols()

Add missing Columns to a Data Frame

hsDelEmptyCols()

Delete empty Columns of Data Frame

hsRenameColumns()

Rename Columns in a Data Frame (deprecated)

insertColumns()

Insert new Column(s) into a Data Frame

mergeAll()

Merge Multiple Data Frames

moveColumnsToFront()

Move Columns to the Start of a Data Frame

noFactorDataFrame()

Create Data Frame without Factors

pasteColumns()

Paste Columns of Data Frame With Separator

pasteColumns0()

Paste Columns of Data Frame Without Separator

posixColumnAtPosition()

Indices of POSIX columns in a Data Frame

rbindAll()

rbind all data frames given in a list

removeColumns()

Remove Columns from a Data Frame

removeEmptyColumns()

Remove empty Columns from a Data Frame

renameAndSelect()

Rename and Select Columns of a Data Frame

renameColumns()

Rename Columns in a Data Frame

resetRowNames()

Reset row names to 1:n

roundColumns()

Round Columns to given Number of Digits

rowwisePercentage()

Rowwise Percentage

safeColumnBind()

"Safe" version of cbind.

safeMerge()

Merge By Checking Column Existence

safeRowBind()

"safe" rbind

safeRowBindAll()

"safe" rbind of all data frames in a list

selectColumns()

Select Columns from a Data Frame

setColumns()

Set the column(s) of a data frame

splitIntoFixSizedBlocks()

Split into blocks of same size

tableLookup()

Lookup Value for Key in Table

unmerge()

Invert the Merging of two Data Frames

Functions Working on Lists

copyListElements()

Copy List Elements into a List of Lists

excludeNULL()

Exclude all NULL Entries from a List

getPathsAndValuesFromRecursiveList()

Get Paths and String Values from Recursive List

mergeLists()

Merge Lists Overriding Elements of the Same Name

nameByElement()

Name List Elements by Sublist Element

recursiveNames()

names of all sublists of a list

removeElements()

Remove Elements from a List

revertListAssignments()

Revert List Assignments

safeRowBindOfListElements()

row-bind data frames in a list of lists

selectElements()

Select (and Rename) Elements from List

Array/Matrix Functions

createMatrix()

Matrix with Row and Column Names

diffrows()

Differences between Matrix Rows

dropDim()

Drop Array Dimension(s) of Length One

mergeNamedArrays()

Merge List of Named Arrays

randomMatrix()

Create a Matrix with Random Integer Values

setMatrixColumns()

Set Matrix Columns to Values

splitAlongDim()

Split Array Along a Dimension

Vector Functions

breakInSequence()

Find "Breaks" in a Sequence of Numbers

combineAlternatingly()

Combine Two Vectors Alternatingly

enlargeVector()

Enlarge a Vector to Given Length

extendLimits()

Extend the Limits of a Range Vector

firstElement()

First Element

getByPositiveOrNegativeIndex()

Get Vector Elements by Positive or Negative Index

lastElement()

Last Element

limitToRange()

Limit Values to Interval

parallelNonNA()

Merge two Vectors selecting non-NA Values

recycle()

"Recycle" Vector to given Length

General Object Functions

addClass()

Add a Class to an Object

getAttribute()

Safely get the Attribute of an Object

getNamesOfObjectsInRDataFiles()

Deprecated. Use listObjects instead.

getObjectFromRDataFile()

Deprecated. Please use loadObject instead.

hsRestoreAttributes()

Restore Object Attributes

listObjects()

Get Names of Objects in .RData files

loadObject()

Load R object from .RData file

removeAttributes()

Remove all or selected Attributes of an Object

Conversion Functions

asColumnList()

Matrix to List of Matrix Columns

asRowList()

Matrix to List of Matrix Rows

convertCsvFile()

Modify the format of a CSV file

csvTextToDataFrame()

CSV Text to Data Frame

hsChrToNum()

Character to Numeric

hsStringToDate()

Convert String to Date

hsStringToDouble()

Convert String to Double

hsMatrixToListForm()

Convert "Matrix Form" (wide format) to "List Form" (long format)

naToLastNonNa()

Replace NA With "Last" non-NA

startsToEnds()

Helper Function: Start Indices to End Indices

startsToRanges()

Row Numbers of Start Rows to From/To Row Ranges

toFactor()

Convert to Factor with unique Values as Levels

toFormula()

Create Formula from Left and Right Term Strings

toInches()

Convert Centimeters to Inches

toKeysAndValues()

Key Value String to List of Keys and Values

toLookupClass()

Keys and Values to Lookup Structure

toLookupList()

Keys and Values to Lookup List

toLookupTable()

Keys and Values or List to Lookup Table

toNamedList()

Convert to List with Names Equal to List Elements

toPositiveIndices()

Negative Indices to Positive Indices

underscoreToPercent()

Replace underscore with percent sign

Shortcut Functions to if-statements

catIf()

Call cat If Condition Is Met

defaultIfNA()

Default Value if Object is NA

defaultIfNULL()

Default Value if Object is NULL

defaultIfZero()

Default Value if Object is 0 (zero)

finishAndShowPdfIf()

Finish and Display PDF File if Condition is Met

preparePdfIf()

Prepare PDF File if Condition is Met

printIf()

Call Print If Condition Is Met

Operating System Functions

cmdLinePath()

Path in Quotes for Usage in Command Line

copyDirectoryStructure()

Copy Directory Structure

createDirAndReturnPath()

Create a Directory including required "upward" Folders

createDirectory()

Create Directory if it does not exist

defaultWindowsProgramFolders()

Default Windows Program Folders

desktop()

Path to Your Desktop

fileExtension()

Get Extension of Full File Paths

get_homedir()

Get File Path of User's Home Directory

hsOpenWindowsExplorer()

Open Windows Explorer

hsShell()

Wrapper around "shell"

hsShowPdf()

Open PDF file in PDF viewer

hsSystem()

Wrapper around "system"

mySystemTime()

Elapsed Time of a Function Call

objectSize()

Object Size and Sizes of Sub Structures in Mb

rStylePath()

R compatible file path

runBatchfileInDirectory()

Run a Batch File in a given Directory

runInDirectory()

Change Working Directory and Run Function

safePath()

Stop if Path does not Exist

tempSubdirectory()

Create and Return Path of Subdirectory in temp()

user()

Name of the Current User

windowsPath()

convert to MS Windows-compatible path

Check Functions

assertRowsAndColumns()

Assert Row and Column Names of a Matrix

checkForMissingColumns()

Check for Column Existence

msgAvailableFields()

Message Listing Available Fields

stopIfNotMatrix()

Stop with a Message if Input is not a Matrix

warnIfEmpty()

warnIfEmpty

warningDeprecated()

Create Warning About a Deprecated Function

Debug Functions

assignAll()

Call assign for each List Element

assignArgumentDefaults()

Assign Argument Default Values in the Global Environment

assignGlobally()

assignGlobally

assignPackageObjects()

Assign all Package Objects to the Global Environment

getGlobally()

getGlobally

Compare Objects

compareDataFrames()

Compare two data frames by columns

compareSets()

Compare the values in two vectors

Calling Functions

arglist()

Merge Argument Lists or Arguments

callWith()

Call a Function with Given Arguments

callWithStringsAsFactors()

Call a Function with Option "stringsAsFactors" set temporarily

getFunctionName()

Get the Name of a Function

getFunctionValueOrDefault()

Function Value or Default if NA

Cryptographic Functions

createPasswordFile()

Create Encrypted Password File for Account

generateKeyFile()

Generate a Decryption Key File

getPassword()

Get Encrypted Password from File Using Key

Grammar/Dictionary Functions

getTagNames()

Find <tag>-tags in string

hsResolve()

Resolve Placeholders in Dictionary

readDictionaries()

Read Dictionary Files into a List of Dictionaries

readDictionary()

Read Dictionary from Text File

resolve()

Resolve String(s) Using a Dictionary

resolveAll()

Resolve all Placeholders in a Dictionary

writeDictionary()

Write a Dictionary (List) to a Text File

Non-Categorised Functions

DIN.A4()

Width and Height of a DIN A4 Paper

expandGrid()

Wrapper around expand.grid

makeUnique()

Make Duplicated Character Strings Unique adds ".1", ".2", etc. to duplicate values

randomValuesWithSum()

Vector of random Integer Values of given Sum