gpt4 book ai didi

r - 如何在R包中找到所有功能?

转载 作者:行者123 更新时间:2023-12-03 11:33:25 25 4
gpt4 key购买 nike

查找包中所有关联功能的最佳方法是什么?我目前正在通过caTools软件包。如果我执行?caTools??caTools,我将只是搜索名为的函数,而不是包中的函数。有没有简单的方法可以访问R gui中的所有功能?有什么好的搜索功能的方法吗?

最佳答案

我猜想您只是在寻找help(package = caTools),它将打开您的浏览器到相关的帮助页面,该页面列出了“caTools”包中的所有功能。

您也可以尝试:library(help = caTools),但这似乎无法捕获所有内容。关于后一种方法的好处是,您可以捕获输出,以防需要在其他地方引用它:

x <- library(help = caTools)
x$info[[2]]
# [1] "LogitBoost LogitBoost Classification Algorithm"
# [2] "base64encode Convert R vectors to/from the Base64 format"
# [3] "caTools-package Tools: moving window statistics, GIF, Base64,"
# [4] " ROC AUC, etc."
# [5] "colAUC Column-wise Area Under ROC Curve (AUC)"
# [6] "combs All Combinations of k Elements from Vector v"
# [7] "predict.LogitBoost Prediction Based on LogitBoost Classification"
# [8] " Algorithm"
# [9] "read.ENVI Read and Write Binary Data in ENVI Format"
# [10] "read.gif Read and Write Images in GIF format"
# [11] "runmad Median Absolute Deviation of Moving Windows"
# [12] "runmean Mean of a Moving Window"
# [13] "runmin Minimum and Maximum of Moving Windows"
# [14] "runquantile Quantile of Moving Window"
# [15] "runsd Standard Deviation of Moving Windows"
# [16] "sample.split Split Data into Test and Train Set"
# [17] "sumexact Basic Sum Operations without Round-off Errors"
# [18] "trapz Trapezoid Rule Numerical Integration"

关于r - 如何在R包中找到所有功能?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20535247/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com