Miscellaneous helper functions for B. Bischl.


[Up] [Top]

Documentation for package ‘BBmisc’ version 1.5

Help Pages

%nin% Simply a negated 'in' operator.
addClasses A wrapper to add to the class attribute.
argsAsNamedList Parses '...' arguments to a named list.
binPack Simple bin packing.
catf Wrapper for cat and sprintf.
cFactor Combine multiple factors and return a factor.
checkArg Check for a function argument.
checkListElementClass Check that a list contains only elements of a required type.
chunk Chunk elements of vectors into blocks of nearly equal size.
clipString Shortens strings to a given length.
coalesce Returns first non-missing, non-null argument.
collapse Collapse vector to string.
computeMode Compute statistical mode of a vector (value that occurs most frequently).
convertDataFrameCols Converts columns in a data frame to characters, factors or numerics.
convertInteger Conversion for single integer.
convertIntegers Conversion for integer vector.
convertRowsToList Convert rows of data.frame or matrix to lists.
convertToShortString Converts any R object to a descriptive string so it can be used in messages.
do.call2 Execute a function call similar to 'do.call'.
dropNamed Drop named elements of an object.
extractSubList Extracts a named element from a list of lists.
first Find the index of first/last 'TRUE' value in a logical vector.
getMaxIndex Return index of maximal/minimal element in numerical vector.
getMaxIndexOfCols Find row- or columnwise the index of the maximal / minimal element in a matrix.
getMaxIndexOfRows Find row- or columnwise the index of the maximal / minimal element in a matrix.
getMinIndex Return index of maximal/minimal element in numerical vector.
getMinIndexOfCols Find row- or columnwise the index of the maximal / minimal element in a matrix.
getMinIndexOfRows Find row- or columnwise the index of the maximal / minimal element in a matrix.
getOperatingSystem Functions to determine the operating system.
getUnixTime Current time in seconds.
insert Insert elements from one list/vector into another list/vector.
is.error Is return value of try an exception?
isDarwin Functions to determine the operating system.
isDirectory Is one / are several files a directory?
isEmptyDirectory Is one / are several directories empty?
isExpensiveExampleOk Conditional checking for expensive examples.
isFALSE A wrapper for 'identical(x, FALSE)'.
isLinux Functions to determine the operating system.
isProperlyNamed Are all elements of a list / vector uniquely named?
isScalarNA Checks whether an object is a scalar NA value.
isScalarValue Is given argument an atomic vector or factor of length 1?
isUnix Functions to determine the operating system.
isValidName Can some strings be used for column or list element names without problems?
isWindows Functions to determine the operating system.
last Find the index of first/last 'TRUE' value in a logical vector.
lib A wrapper for 'library'.
load2 Load RData file and return objects in it.
lsort A wrapper for 'sort' to sort using the "C" collating rules.
makeDataFrame Initialize data.frame in a convenient way.
makeProgressBar Create a progress bar with estimated time.
makeS3Obj Simple constructor for S3 objects based on lists.
makeSimpleFileLogger Simple logger which outputs to a file.
messagef Wrapper for message and sprintf.
namedList Create named list, possibly initialized with a certain element.
names2 Replacement for names which always returns a vector.
pause Pause in interactive mode and continue on <Enter>.
printStrToChar Print 'str(x)' of an object to a string / character vector.
printToChar Prints object to a string / character vector.
ProgressBar Create a progress bar with estimated time.
requirePackages Require some packages.
rowLapply Apply function to rows of a data frame.
rowSapply Apply function to rows of a data frame.
save2 Save multiple objects to a file.
seq_col Generate sequences along rows or cols.
seq_row Generate sequences along rows or cols.
setAttribute A wrapper for 'attr(x, which) = y'.
setClasses A wrapper for 'class(x) = classes'.
setColNames Wrapper for 'rownames(x) = y', 'colnames(x) = y'.
setRowNames Wrapper for 'rownames(x) = y', 'colnames(x) = y'.
SimpleFileLogger Simple logger which outputs to a file.
splitTime Split seconds into handy chunks of time.
stopf Wrapper for stop and sprintf.
strrepeat Repeat and join a string
suppressAll Suppresses all output except for errors.
system3 Wrapper for system2 with better return type and errorhandling.
toRangeStr Convert a numerical vector into a range string.
warningf Wrapper for warning and sprintf.