Miscellaneous Helper Functions for B. Bischl
Miscellaneous helper functions for and from B. Bischl and some other guys, mainly for package development.
A wrapper to add to the class attribute.
Parses ... arguments to a named list.
Extracts a named element from a list of lists.
Converts a string into a quoted expression.
Simple bin packing.
Check if some values are covered by the range of the values in a second vector.
Combine multiple factors and return a factor.
Capitalize strings in a vector
Wrapper for cat and sprintf.
Check for a function argument.
Check that a list contains only elements of a required type.
Chunk elements of vectors into blocks of nearly equal size.
Shortens strings to a given length.
Returns first non-missing, non-null argument.
Collapse vector to string.
Compute statistical mode of a vector (value that occurs most frequently).
Converts columns in a data frame to characters, factors or numerics.
Conversion for single integer.
Conversion for integer vector.
Convert a list of row-vector of equal structure to a data.frame.
Converts storage type of a matrix.
Convert rows (columns) of data.frame or matrix to lists.
Converts any R object to a descriptive string so it can be used in messages.
Call lapply on an object and return a data.frame.
Deprecated function. Do not use!
Execute a function call similar to do.call.
Drop named elements of an object.
Blow up single scalars / objects to vectors / list by replication.
Split up a string into substrings.
Filter a list for NULL values
Helper function for determining the vector of attribute names of a given object.
Wrapper for class(x)[1].
Get the first/last element of a list/vector.
Return index of maximal/minimal/best element in numerical vector.
Find row- or columnwise the index of the maximal / minimal element in a matrix.
Functions to determine the operating system.
Construct a path relative to another
Current time in seconds.
Determines used factor levels.
Check if given object has certain attributes.
Insert elements from one list/vector into another list/vector.
Is return value of try an exception?
Is one / are several files a directory?
Is one / are several directories empty?
Conditional checking for expensive examples.
A wrapper for identical(x, FALSE).
Are all elements of a list / vector uniquely named?
Checks whether an object is a scalar NA value.
Is given argument an atomic vector or factor of length 1?
Check subset relation on two vectors.
Check superset relation on two vectors.
Can some strings be used for column or list element names without problems?
Convert Integers to Strings
A wrapper for library.
Load RData file and return objects in it.
A wrapper for sort to sort using the “C” collating rules.
Initialize data.frame in a convenient way.
A caching wrapper around load2.
Create a progress bar with estimated time.
Simple constructor for S3 objects based on lists.
Simple logger which outputs to a file.
Replace values in atomic vectors
Wrapper for message and sprintf.
Create named list, possibly initialized with a certain element.
Replacement for names which always returns a vector.
Simply a negated in operator.
Normalizes numeric data to a given scale.
Naive multi-start version of optimize for global optimization.
Pause in interactive mode and continue on <Enter>.
More meaningful head(df) output.
Print str(x) of an object to a string / character vector.
Prints object to a string / character vector.
Calculate range statistic.
Require some packages.
Apply function to rows of a data frame.
Save multiple objects to a file.
Generate sequences along rows or cols.
A wrapper for attr(x, which) = y.
A wrapper for class(x) = classes.
Wrapper for rownames(x) = y, colnames(x) = y.
Set a list element to a new value.
Sort the rows of a data.frame according to one or more columns.
Split a path into components
Split seconds into handy chunks of time.
Wrapper for stop and sprintf.
Repeat and join a string
Suppresses all output except for errors.
Calculates symmetric set difference between two sets.
Wrapper for system2 with better return type and errorhandling.
Convert a numerical vector into a range string.
Apply a function with a predefined return value
Wrapper for warning and sprintf.
Find the index of first/last TRUE value in a logical vector.
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.