Package: BBmisc 1.13

BBmisc: Miscellaneous Helper Functions for B. Bischl

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

Authors:Bernd Bischl [aut, cre], Michel Lang [aut], Jakob Bossek [aut], Daniel Horn [aut], Jakob Richter [aut], Dirk Surmann [aut]

BBmisc_1.13.tar.gz
BBmisc_1.13.zip(r-4.6)BBmisc_1.13.zip(r-4.5)BBmisc_1.13.zip(r-4.4)
BBmisc_1.13.tgz(r-4.6-x86_64)BBmisc_1.13.tgz(r-4.6-arm64)BBmisc_1.13.tgz(r-4.5-x86_64)BBmisc_1.13.tgz(r-4.5-arm64)
BBmisc_1.13.tar.gz(r-4.6-arm64)BBmisc_1.13.tar.gz(r-4.6-x86_64)BBmisc_1.13.tar.gz(r-4.5-arm64)BBmisc_1.13.tar.gz(r-4.5-x86_64)
BBmisc_1.13.tgz(r-4.5-emscripten)
BBmisc.pdf |BBmisc.html
BBmisc/json (API)
NEWS

# Install 'BBmisc' in R:
install.packages('BBmisc', repos = c('https://berndbischl.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/berndbischl/bbmisc/issues

On CRAN:

Conda:

11.09 score 20 stars 70 packages 1.2k scripts 19k downloads 2 mentions 121 exports 3 dependencies

Last updated from:111f252eaa. Checks:13 OK. Indexed: yes.

TargetResultTotal timeArtifact
linux-devel-arm64OK129
linux-devel-x86_64OK103
source / vignettesOK163
linux-release-arm64OK109
linux-release-x86_64OK109
macos-devel-arm64OK178
macos-devel-x86_64OK178
macos-release-arm64OK134
macos-release-x86_64OK188
windows-develOK86
windows-releaseOK83
windows-oldrelOK87
wasm-releaseOK94

Exports:%btwn%%nin%addClassesargsAsNamedListasMatrixColsasMatrixRowsasQuotedbinPackcapitalizeStringscatfcFactorcheckArgcheckListElementClasschunkclipStringcoalescecollapsecollapsefcomputeModeconvertColsToListconvertDataFrameColsconvertDfColsconvertIntegerconvertIntegersconvertListOfRowsToDataFrameconvertMatrixTypeconvertRowsToListconvertToShortStringdapplydo.call2dropNamedensureVectorexplodeextractSubListfilterNullgetAttributeNamesgetBestIndexgetClass1getFirstgetLastgetMaxIndexgetMaxIndexOfColsgetMaxIndexOfRowsgetMinIndexgetMinIndexOfColsgetMinIndexOfRowsgetOperatingSystemgetRelativePathgetUnixTimegetUsedFactorLevelshasAttributesinsertis.errorisDarwinisDirectoryisEmptyDirectoryisExpensiveExampleOkisFALSEisLinuxisProperlyNamedisScalarCharacterisScalarComplexisScalarFactorisScalarIntegerisScalarLogicalisScalarNAisScalarNumericisScalarValueisSubsetisSupersetisUnixisValidNameisWindowsitostrliblistToShortStringload2lsortmakeDataFramemakeFileCachemakeProgressBarmakeS3ObjmakeSimpleFileLoggermapValuesmessagefnamedListnames2normalizeoptimizeSubIntspauseprintHeadprintStrToCharprintToCharrangeValrequirePackagesrowLapplyrowSapplysave2seq_colseq_rowsetAttributesetClassessetColNamessetRowNamessetValuesortByColsplitPathsplitTimestopfstrrepeatsuppressAllsymdiffsystem3toRangeStrvcapplyviapplyvlapplyvnapplywarningfwhich.firstwhich.last

Dependencies:backportscheckmatedata.table

Readme and manuals

Help Manual

Help pageTopics
Check if some values are covered by the range of the values in a second vector%btwn%
Simply a negated 'in' operator%nin%
A wrapper to add to the class attributeaddClasses
Parses '...' arguments to a named listargsAsNamedList
Extracts a named element from a list of listsasMatrixCols asMatrixRows
Converts a string into a quoted expressionasQuoted
Simple bin packingbinPack
Capitalize strings in a vectorcapitalizeStrings
Wrapper for cat and sprintfcatf
Combine multiple factors and return a factorcFactor
Check for a function argumentcheckArg
Check that a list contains only elements of a required typecheckListElementClass
Chunk elements of vectors into blocks of nearly equal sizechunk
Shortens strings to a given lengthclipString
Returns first non-missing, non-null argumentcoalesce
Collapse vector to stringcollapse
Collapse vector to stringcollapsef
Compute statistical mode of a vector (value that occurs most frequently)computeMode
Converts columns in a data frame to characters, factors or numericsconvertDataFrameCols
Conversion for single integerconvertInteger
Conversion for integer vectorconvertIntegers
Convert a list of row-vector of equal structure to a data.frameconvertListOfRowsToDataFrame
Converts storage type of a matrixconvertMatrixType
Convert rows (columns) of data.frame or matrix to listsconvertColsToList convertRowsToList
Converts any R object to a descriptive string so it can be used in messagesconvertToShortString
Call 'lapply' on an object and return a data.framedapply
Deprecated function. Do not use!convertDfCols deprecated listToShortString
Execute a function call similar to 'do.call'do.call2
Drop named elements of an objectdropNamed
Blow up single scalars / objects to vectors / list by replicationensureVector
Split up a string into substringsexplode
Extracts a named element from a list of listsextractSubList
Filter a list for NULL valuesfilterNull
Helper function for determining the vector of attribute names of a given objectgetAttributeNames
Wrapper for 'class(x)[1]'getClass1
Get the first/last element of a list/vectorgetFirst getLast
Return index of maximal/minimal/best element in numerical vectorgetBestIndex getMaxIndex getMinIndex
Find row- or columnwise the index of the maximal / minimal element in a matrixgetMaxIndexOfCols getMaxIndexOfRows getMinIndexOfCols getMinIndexOfRows
Functions to determine the operating systemgetOperatingSystem isDarwin isLinux isUnix isWindows
Construct a path relative to anothergetRelativePath
Current time in secondsgetUnixTime
Determines used factor levelsgetUsedFactorLevels
Check if given object has certain attributeshasAttributes
Insert elements from one list/vector into another list/vectorinsert
Is return value of try an exception?is.error
Is one / are several files a directory?isDirectory
Is one / are several directories empty?isEmptyDirectory
Conditional checking for expensive examplesisExpensiveExampleOk
A wrapper for 'identical(x, FALSE)'isFALSE
Are all elements of a list / vector uniquely named?isProperlyNamed
Checks whether an object is a scalar NA valueisScalarNA
Is given argument an atomic vector or factor of length 1?isScalarCharacter isScalarComplex isScalarFactor isScalarInteger isScalarLogical isScalarNumeric isScalarValue
Check subset relation on two vectorsisSubset
Check superset relation on two vectorsisSuperset
Can some strings be used for column or list element names without problems?isValidName
Convert Integers to Stringsitostr
A wrapper for 'library'lib
Load RData file and return objects in itload2
A wrapper for 'sort' to sort using the "C" collating ruleslsort
Initialize data.frame in a convenient waymakeDataFrame
A caching wrapper around load2makeFileCache
Create a progress bar with estimated timemakeProgressBar ProgressBar
Simple constructor for S3 objects based on listsmakeS3Obj
Simple logger which outputs to a filemakeSimpleFileLogger SimpleFileLogger
Replace values in atomic vectorsmapValues
Wrapper for message and sprintfmessagef
Create named list, possibly initialized with a certain elementnamedList
Replacement for names which always returns a vectornames2
Normalizes numeric data to a given scalenormalize
Naive multi-start version of 'optimize' for global optimizationoptimizeSubInts
Pause in interactive mode and continue on <Enter>.pause
More meaningful 'head(df)' outputprintHead
Print 'str(x)' of an object to a string / character vectorprintStrToChar
Prints object to a string / character vectorprintToChar
Calculate range statisticrangeVal
Require some packagesrequirePackages
Apply function to rows of a data framerowLapply rowSapply
Save multiple objects to a filesave2
Generate sequences along rows or colsseq_col seq_row
A wrapper for 'attr(x, which) = y'setAttribute
A wrapper for 'class(x) = classes'setClasses
Wrapper for 'rownames(x) = y', 'colnames(x) = y'setColNames setRowNames
Set a list element to a new valuesetValue
Sort the rows of a data.frame according to one or more columnssortByCol
Split a path into componentssplitPath
Split seconds into handy chunks of timesplitTime
Wrapper for stop and sprintfstopf
Repeat and join a stringstrrepeat
Suppresses all output except for errorssuppressAll
Calculates symmetric set difference between two setssymdiff
Wrapper for system2 with better return type and errorhandlingsystem3
Convert a numerical vector into a range stringtoRangeStr
Apply a function with a predefined return valuevcapply viapply vlapply vnapply
Wrapper for warning and sprintfwarningf
Find the index of first/last 'TRUE' value in a logical vectorwhich.first which.last

  • Image