Learn R Programming

⚠️There's a newer version (1.13.1) of this package.Take me there.

BBmisc (version 1.1-125)

Miscellaneous helper functions for B. Bischl.

Description

Miscellaneous helper functions for and from B. Bischl and some other guys at TU Dortmund, mainly for package development.

Copy Link

Version

Install

install.packages('BBmisc')

Monthly Downloads

16,519

Version

1.1-125

License

BSD

Maintainer

Bernd Bischl

Last Published

May 10th, 2012

Functions in BBmisc (1.1-125)

makeProgressBar

Create a progress bar with estimated time.
%nin%

Simply a negated in operator.
splitTime

Split seconds into handy chunks of time.
parallelStop

Stops parallelization.
parallelStart

Parallelization setup for parallelMap.
isEmptyDirectory

Is one / are several directories empty?
printToChar

Prints object to a string / character vector.
coalesce

Returns first non-missing, non-null argument.
isExpensiveExampleOk

Conditional checking for expensive examples.
messagef

Wrapper for message and sprintf.
extractSubList

Extracts a named element from a list of lists.
load2

Load RData file and return objects in it.
collapse

Collapse vector to string.
parallelMap

Maps a function over lists or vectors in parallel.
checkListElementClass

Check that a list contains only elements of a required type.
cFactor

Combine multiple factors and return a factor.
insert

Insert elements from one list into another list.
convertIntegers

Conversion for integer vector.
checkArg

Check for a function argument.
chunk

Chunk elements of vectors into blocks of nearly equal size.
isProperlyNamed

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

Conversion for single integer.
system3

Wrapper for system2 with better return type and errorhandling.
stringsAsFactors

Convert all character columns in data.frame to factors.
suppressAll

Suppresses all output except for errors.
save2

Save multiple objects to a file.
listToShortString

Converts list to short string describing contents.
is.error

Is return value of try an exception?
warningf

Wrapper for warning and sprintf.
namedList

Create named list, possibly initialized with a certain element.
isDirectory

Is one / are several files a directory?
requirePackages

Require some packages.
stopf

Wrapper for stop and sprintf.
catf

Wrapper for cat and sprintf.