Skip to contents

List all the functions in a package.

Usage

funList(package, exported = TRUE)

Arguments

package

the name of the package.

exported

logical; whether only exported functions are listed. Defaults to TRUE.

Value

a sorted character vector with the function names.

Details

This is just a wrapper for the namespace inspection functions (as I always forgot how to do the trick). By default only the exported functions are returned; with exported = FALSE all functions defined in the package namespace are listed, including internal ones.

References

Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988) The New S Language. Wadsworth & Brooks/Cole.

Examples


funList("bedrock")
#>   [1] "%()%"                   "%(]%"                   "%)(%"                  
#>   [4] "%)[%"                   "%:%"                    "%::%"                  
#>   [7] "%[)%"                   "%[]%"                   "%](%"                  
#>  [10] "%][%"                   "%^%"                    "%overlaps%"            
#>  [13] "GCD"                    "LCM"                    "abind"                 
#>  [16] "allDuplicated"          "allIdentical"           "appendEnum"            
#>  [19] "appendRowNames"         "appendX"                "applySides"            
#>  [22] "asBinary"               "asCDateFmt"             "asciiToChar"           
#>  [25] "auditNames"             "baseToBase"             "bin"                   
#>  [28] "binToDec"               "binaryTree"             "buildPath"             
#>  [31] "callIf"                 "caseWhen"               "charToAscii"           
#>  [34] "checkConfLevel"         "checkCount"             "checkFlag"             
#>  [37] "checkString"            "chr"                    "closest"               
#>  [40] "coalesceX"              "collapseTable"          "columnWrap"            
#>  [43] "combLevels"             "combN"                  "combPairs"             
#>  [46] "combSet"                "compareDataFrames"      "completeColumns"       
#>  [49] "conceptAudit"           "conceptMap"             "countCompCases"        
#>  [52] "crossProd"              "crossProdN"             "dataDescription"       
#>  [55] "decToBin"               "decToHex"               "decToOct"              
#>  [58] "digitSum"               "distance"               "divisors"              
#>  [61] "dotProd"                "dummy"                  "extractArgs"           
#>  [64] "factorize"              "fibonacci"              "findDownload"          
#>  [67] "flags"                  "frac"                   "funArgs"               
#>  [70] "funCalls"               "funKeywords"            "funList"               
#>  [73] "getConcepts"            "getDotsArg"             "groupApply"            
#>  [76] "hexToDec"               "int"                    "isDichotomous"         
#>  [79] "isEuclid"               "isFilePath"             "isLowCardinality"      
#>  [82] "isNA"                   "isNumeric"              "isOdd"                 
#>  [85] "isPrime"                "isUrl"                  "isWholeLike"           
#>  [88] "isZero"                 "keepAttr"               "label"                 
#>  [91] "label<-"                "linScale"               "locf"                  
#>  [94] "logit"                  "logitInv"               "mGsub"                 
#>  [97] "mReplace"               "maxDec"                 "mergeArgs"             
#> [100] "midx"                   "moveAvg"                "multMerge"             
#> [103] "nDec"                   "nUnique"                "naIf"                  
#> [106] "naReplace"              "nchr"                   "nf"                    
#> [109] "num"                    "nz"                     "octToDec"              
#> [112] "openDataObject"         "overlapSize"            "overlaps"              
#> [115] "pairApply"              "parseSasDatalines"      "pdfManual"             
#> [118] "peekFile"               "percentRank"            "permn"                 
#> [121] "prec"                   "primes"                 "printCharMatrix"       
#> [124] "ptInPoly"               "quot"                   "rBetaShape"            
#> [127] "rSum21"                 "randGroupSplit"         "rankX"                 
#> [130] "rdLabels"               "rdTitle"                "readCourseData"        
#> [133] "readDownload"           "recodeX"                "recycle"               
#> [136] "removeAttr"             "renameX"                "resolveContingency"    
#> [139] "resolveFormula"         "resolveFormulaFromCall" "resolveGroups"         
#> [142] "revCode"                "revX"                   "romanToInt"            
#> [145] "roundTo"                "sampleX"                "setAttr"               
#> [148] "setLength"              "setNamesX"              "sortX"                 
#> [151] "splitAt"                "splitPath"              "splitX"                
#> [154] "strSplitToCol"          "strSplitToDummy"        "strX"                  
#> [157] "stringsAsFactors"       "toBaseR"                "toLong"                
#> [160] "toWide"                 "trim"                   "unirootAll"            
#> [163] "untable"                "unwhich"                "urlExists"             
#> [166] "vRot"                   "vShift"                 "winsorize"             
#> [169] "withSeed"