Learn R Programming

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

BBmisc (version 1.2-200)

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

11,640

Version

1.2-200

License

BSD

Maintainer

Bernd Bischl

Last Published

May 2nd, 2013

Functions in BBmisc (1.2-200)

checkArg

Check for a function argument.
load2

Load RData file and return objects in it.
stopf

Wrapper for stop and sprintf.
is.error

Is return value of try an exception?
requirePackages

Require some packages.
warningf

Wrapper for warning and sprintf.
parallelStop

Stops parallelization.
printToChar

Prints object to a string / character vector.
isEmptyDirectory

Is one / are several directories empty?
splitTime

Split seconds into handy chunks of time.
isDirectory

Is one / are several files a directory?
parallelMap

Maps a function over lists or vectors in parallel.
argsAsNamedList

Parses ... arguments to a named list.
listToShortString

Converts list to short string describing contents.
parallelGetExported

Retrieve a with parallelExport exported in slave code.
isProperlyNamed

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

Conversion for single integer.
checkListElementClass

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

Replacement for names which always returns a vector.
setRowNames

Wrapper for rownames(x) = y, colnames(x) = y.
namedList

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

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

Conversion for integer vector.
chunk

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

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

Create a progress bar with estimated time.
insert

Insert elements from one list into another list.
isExpensiveExampleOk

Conditional checking for expensive examples.
messagef

Wrapper for message and sprintf.
catf

Wrapper for cat and sprintf.
collapse

Collapse vector to string.
isFALSE

A wrapper for identical(x, FALSE).
parallelStart

Parallelization setup for parallelMap.
suppressAll

Suppresses all output except for errors.
convertDfCols

Converts all character columns in a data.frame to factors
cFactor

Combine multiple factors and return a factor.
computeMode

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

A wrapper for class(x) = classes.
system3

Wrapper for system2 with better return type and errorhandling.
addClasses

A wrapper to add to the class attribute.
parallelExport

save2

Save multiple objects to a file.
extractSubList

Extracts a named element from a list of lists.
lsort

A wrapper for sort to sort using the C collating rules.
%nin%

Simply a negated in operator.
lib

A wrapper for library.