Man pages for KWB-R/kwb.utils
some basic functions used by other kwb packages

addClassAdd a Class to an Object
addRowWithNameAdd a Row with a Name
allAreEqualare all elements in x the same?
allAreIdenticalAre all list elements identical to each other?
almostEqualcompare numerical vectors with tolerance
appendSuffixappend suffix to (selected) character values
arglistmerge argument lists or arguments
asColumnListMatrix to List of Matrix Columns
asRowListMatrix to List of Matrix Rows
assertRowsAndColumnsAssert Row and Column Names of a Matrix
assignAllCall assign for each List Element
assignPackageObjectsAssign all Package Objects to the Global Environment
atLeastOneRowInAt least one row in data frame
breakInSequenceFind "Breaks" in a Sequence of Numbers
callWithcall a function with given arguments
callWithStringsAsFactorsCall a Function with Option "stringsAsFactors" set...
catIfcall cat if condition is met
catLinesprint character vector to the console
checkForMissingColumnsCheck for column existence
clearConsoleClear the R Console
cmdLinePathPath in Quotes for Usage in Command Line
collapsedshortcut to paste(x, collapse = collapse)
colMaximaColumnwise Maxima
colMinimaColumnwise Minima
colNaNumbersColumnwise Number of NA
colStatisticOneFunctionApply Function to All Columns
columnwisePercentageColumnwise Percentage
commaCollapsedPaste With Collapse = ","
compareDataFramesCompare two data frames by columns
compareSetsCompare the values in two vectors
containsNulStringCheck for nul String in File
convertCsvFileModify the format of a CSV file
copyDirectoryStructureCopy Directory Structure
copyListElementsCopy list elements into a list of lists
countOrSumCount or Sum Up Values Within Groups of rows
createDirAndReturnPathCreate a Directory including required "upward" Folders
createDirectoryCreate Directory if it does not exist
createMatrixmatrix with row and column names
createPasswordFilecreate encrypted password file for account
defaultIfNADefault Value if Object is NA
defaultIfNULLDefault Value if Object is NULL
defaultIfZeroDefault Value if Object is 0 (zero)
defaultLevelsDefault Factor Levels
defaultWindowsProgramFoldersDefault Windows Program Folders
desktopPath to Your Desktop
diffrowsDifferences between Matrix Rows
DIN.A4width and height of a DIN A4 paper
enlargeVectorEnlarge a Vector to given Length
excludeNULLExclude all NULL entries from a list
expandGridWrapper around expand.grid
extendLimitsExtend the Limits of a Range Vector
extractRowRangesextract row ranges by pattern
extractSubstringextract substrings defined by regular expressions
fileExtensionGet Extension of Full File Paths
finishAndShowPdfclose device and open PDF file in viewer
firstElementFirst Element
firstPosixColumndata/time column of data frame
frenchToAsciiFrench unicode letter to ASCII letter(s)
frequencyTableNumber of value occurrences in columns
fullySortedSort a Data Frame by all of its Columns
generateKeyFilegenerate a decryption key file
getAttributeSafely get the Attribute of an Object
getByPositiveOrNegativeIndexGet Vector Elements by positive or negative Index
getEvenNumbersGet even Numbers out of a Vector of Integers
getFunctionNameGet the Name of a Function
getFunctionValueOrDefaultFunction Value or Default if NA
getKeywordPositionslocalise keywords in data frame
getNamesOfObjectsInRDataFilesDeprecated. Use 'listObjects' instead.
getObjectFromRDataFileDeprecated. Please use 'loadObject' instead.
getOddNumbersGet odd Numbers out of a Vector of Integers
getPasswordget encrypted password from file using key
getTagNamesFind <tag>-tags in string
guessSeparatorguess column separator from file
headtailPrint First and Last Rows of a Data Frame
hsAddMissingColsAdd missing Columns to a Data Frame
hsCountInStrCount Pattern in String
hsDelEmptyColsDelete empty Columns of Data Frame
hsMatrixToListFormConvert "Matrix Form" (wide format) to "List Form" (long...
hsMovingMeanmoving mean
hsOpenWindowsExplorerOpen Windows Explorer
hsPrepPdfPrepare writing of PDF file
hsQuoteChrQuote Character Strings
hsRenameColumnsRename Columns in a Data Frame (deprecated)
hsResolveResolve Placeholders in Dictionary
hsRestoreAttributesRestore Object Attributes
hsSafeNameNon-existing desired name
hsShellWrapper around "shell"
hsShowPdfOpen PDF file in PDF viewer
hsStringToDoubleConvert String to Double
hsSubstSpecCharsSubstitution of Special Characters
hsSystemWrapper around "system"
hsTrimRemove leading and trailing spaces
hsValidValuevalue in a correct English/German notation?
insertColumnsInsert new Column(s) into a Data Frame
isEvenNumberCheck for Even Numbers
isLoadedHas a script been loaded (with source)?
isNaOrEmptyNA or the empty string ""?
isOddNumberCheck for Odd Numbers
is.unnamedare list elements unnamed?
lastElementLast Element
limitToRangelimit values to lie within [left, right]
linearCombinationlinear combination of a matrix
listObjectsGet Names of Objects in .RData files
loadObjectLoad R object from .RData file
makeUniqueMake Duplicated Character Strings Unique adds ".1", ".2",...
matchesCriteriaDo Data Frame Row Match Given Criteria?
mergeAllMerge multiple Data Frames
mergeListsmerge lists overriding elements of the same name
moveColumnsToFrontMove Columns to the Start of a Data Frame
moveToFrontMove elements to the start of a vector
msgAvailableFieldsMessage Listing Available Fields
multiSubstituteMultiple Substitutions
mySystemTimeElapsed Time of a Function Call
nameByElementname list elements by sublist element
naToLastNonNaReplace NA With "Last" non-NA
objectSizeObject Size and Sizes of Sub Structures in Mb
pairwisereorder strings so that matching strings are neighbours
parallelNonNAMerge two Vectors selecting non-NA Values
pasteColumnsPaste the Columns of a Data Frame with a Separator
pasteColumns0Paste Columns of Data Frame without Separator
percentageOfSumpercentage of the sum of values
posixColumnAtPositionIndices of POSIX columns in a Data Frame
preparePdfopen PDF device with DIN A4 dimensions
printIfcall print if condition is met
randomMatrixCreate a matrix with random integer values
randomValuesWithSumVector of random Integer Values of given Sum
rbindAllrbind all data frames given in a list
readArglistsRead Argument Lists from CSV File
readCsvInputFileread CSV file
readDictionariesRead Dictionary Files into a List of Dictionaries
readDictionaryRead Dictionary from Text File
readPackageFileread file from package's extdata folder
recursiveNamesnames of all sublists of a list
recycle"Recycle" Vector to given Length
removeAttributesRemove all or selected Attributes of an Object
removeColumnsRemove Columns from a Data Frame
removeElementsremove elements from a list
removeEmptyColumnsRemove empty Columns from a Data Frame
removeSpacesremove all spaces in string(s)
renameAndSelectRename and select Columns of a Data Frame
renameColumnsRename Columns in a Data Frame
resetRowNamesReset row names to 1:n
resolveResolve string(s) using a dictionary
resolveAllResolve all Placeholders in a Dictionary
roundColumnsRound Columns to given Number of Digits
rStylePathR compatible file path
runBatchfileInDirectoryRun a Batch File in a given Directory
runInDirectoryChange Working Directory and Run Function
safeColumnBind"Safe" version of cbind.
safeMergeMerge By Checking Column Existence
safePathStop if Path does not Exist
safeRowBind"safe" rbind
safeRowBindAll"safe" rbind of all data frames in a list
safeRowBindOfListElementsrow-bind data frames in a list of lists
selectColumnsSelect Columns from a Data Frame
selectElementsselect (and rename) elements from list
setColumnsSet the column(s) of a data frame
setLoadedset the "loaded" status for a script
setMatrixColumnsSet Matrix Columns to Values
sourceScriptsLoad R Scripts with 'source'
splitIntoFixSizedBlocksSplit into blocks of same size
startsToEndshelper function: start indices to end indices
startsToRangesrow numbers of start rows to from/to row ranges
stopIfNotMatrixStop with a Message if Input is not a Matrix
stringListstring of comma separated quoted strings
stringToExpressionConvert String to Expression
subExpressionMatchesfind and extract regular expressions from strings
tableLookuplookup value for key in table
tempSubdirectoryCreate and return Path of Subdirectory in temp()
test_matchesCriteriatest matchesCriteria
test_roundColumnstest roundColumns
toFactorConvert to Factor with unique Values as Levels
toFormulacreate formula from left and right term strings
toInchesConvert Centimeters to Inches
toKeysAndValueskey value string to list of keys and values
toLookupClasskeys and values to lookup structure
toLookupListkeys and values to lookup list
toLookupTablekeys and values or list to lookup table
toNamedListconvert to list with names equal to list elements
toPositiveIndicesNegative Indices to Positive Indices
underscoreToPercentReplace underscore with percent sign
unmergeInvert the Merging of two Data Frames
userName of the Current User
windowsPathconvert to MS Windows-compatible path
writeDictionaryWrite a Dictionary (List) to a Text File
KWB-R/kwb.utils documentation built on Dec. 1, 2017, 2:12 p.m.