Learn R Programming

Copy Link

Version

Install

install.packages('BBmisc')

Monthly Downloads

10,823

Version

1.13.2

License

BSD_2_clause + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Bernd Bischl

Last Published

November 5th, 2026

Functions in BBmisc (1.13.2)

dropNamed

Drop named elements of an object
do.call2

Execute a function call similar to do.call
convertIntegers

Conversion for integer vector
getUnixTime

Current time in seconds
isScalarValue

Is given argument an atomic vector or factor of length 1?
convertToShortString

Converts any R object to a descriptive string so it can be used in messages
convertRowsToList

Convert rows (columns) of data.frame or matrix to lists
insert

Insert elements from one list/vector into another list/vector
convertInteger

Conversion for single integer
is.error

Is return value of try an exception?
getRelativePath

Construct a path relative to another
getClass1

Wrapper for class(x)[1]
itostr

Convert Integers to Strings
namedList

Create named list, possibly initialized with a certain element
messagef

Wrapper for message and sprintf
lib

A wrapper for library
isEmptyDirectory

Is one / are several directories empty?
isDirectory

Is one / are several files a directory?
makeS3Obj

Simple constructor for S3 objects based on lists
isSubset

Check subset relation on two vectors
makeProgressBar

Create a progress bar with estimated time
getUsedFactorLevels

Determines used factor levels
rangeVal

Calculate range statistic
getOperatingSystem

Functions to determine the operating system
getMaxIndexOfRows

Find row- or columnwise the index of the maximal / minimal element in a matrix
setValue

Set a list element to a new value
sortByCol

Sort the rows of a data.frame according to one or more columns
extractSubList

Extracts a named element from a list of lists
filterNull

Filter a list for NULL values
convertListOfRowsToDataFrame

Convert a list of row-vector of equal structure to a data.frame
isProperlyNamed

Are all elements of a list / vector uniquely named?
convertMatrixType

Converts storage type of a matrix
isScalarNA

Checks whether an object is a scalar NA value
hasAttributes

Check if given object has certain attributes
requirePackages

Require some packages
toRangeStr

Convert a numerical vector into a range string
splitPath

Split a path into components
makeFileCache

A caching wrapper around load2
names2

Replacement for names which always returns a vector
getMaxIndex

Return index of maximal/minimal/best element in numerical vector
isExpensiveExampleOk

Conditional checking for expensive examples
getFirst

Get the first/last element of a list/vector
clipString

Shortens strings to a given length
coalesce

Returns first non-missing, non-null argument
explode

Split up a string into substrings
ensureVector

Blow up single scalars / objects to vectors / list by replication
isFALSE

A wrapper for identical(x, FALSE)
isSuperset

Check superset relation on two vectors
isValidName

Can some strings be used for column or list element names without problems?
load2

Load RData file and return objects in it
lsort

A wrapper for sort to sort using the “C” collating rules
normalize

Normalizes numeric data to a given scale
%nin%

Simply a negated in operator
seq_row

Generate sequences along rows or cols
setClasses

A wrapper for class(x) = classes
setAttribute

A wrapper for attr(x, which) = y
setRowNames

Wrapper for rownames(x) = y, colnames(x) = y
which.first

Find the index of first/last TRUE value in a logical vector
printStrToChar

Print str(x) of an object to a string / character vector
splitTime

Split seconds into handy chunks of time
system3

Wrapper for system2 with better return type and errorhandling
printToChar

Prints object to a string / character vector
symdiff

Calculates symmetric set difference between two sets
printHead

More meaningful head(df) output
suppressAll

Suppresses all output except for errors
pause

Pause in interactive mode and continue on <Enter>.
makeDataFrame

Initialize data.frame in a convenient way
optimizeSubInts

vlapply

Apply a function with a predefined return value
warningf

Wrapper for warning and sprintf
makeSimpleFileLogger

Simple logger which outputs to a file
mapValues

Replace values in atomic vectors
strrepeat

Repeat and join a string
stopf

Wrapper for stop and sprintf
save2

Save multiple objects to a file
rowLapply

Apply function to rows of a data frame
capitalizeStrings

Capitalize strings in a vector
cFactor

Combine multiple factors and return a factor
catf

Wrapper for cat and sprintf
checkListElementClass

Check that a list contains only elements of a required type
dapply

Call lapply on an object and return a data.frame
collapse

Collapse vector to string
checkArg

Check for a function argument
chunk

Chunk elements of vectors into blocks of nearly equal size
addClasses

A wrapper to add to the class attribute
argsAsNamedList

Parses ... arguments to a named list
collapsef

Collapse vector to string
deprecated

Deprecated function. Do not use!
binPack

Simple bin packing
%btwn%

Check if some values are covered by the range of the values in a second vector
asMatrixCols

Extracts a named element from a list of lists
asQuoted

Converts a string into a quoted expression
computeMode

Compute statistical mode of a vector (value that occurs most frequently)
convertDataFrameCols

Converts columns in a data frame to characters, factors or numerics
getAttributeNames

Helper function for determining the vector of attribute names of a given object