如何在加载包之前知道R中特定功能属于哪个包? [英] How to know to which package a particular function belongs to in R prior to package loading?

查看:72
本文介绍了如何在加载包之前知道R中特定功能属于哪个包?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

例如,我知道许多流行的功能,例如tbl_df().我通常不记得它属于哪个包,即data.tabledplyr.因此,我必须始终记住并加载一个程序包,除非我已加载正确的程序包,否则我将无法执行?tbl_df.

Example, I know many popular functions, to name one like tbl_df(). I usually do not remember which package it belongs to i.e. data.table or dplyr. So I have to always remember and load a package and I can not do ?tbl_df unless I have loaded the correct package.

在R控制台本身中加载或安装软件包之前,是否有办法知道特定功能属于哪个软件包.

Is there a way to know to which package a particular function belongs to, prior to loading or installing of the package in R console itself.

我们非常感谢您的帮助. 谢谢.

Any help is highly appreciated. Thanks.

推荐答案

受@J_F的启发,他建议?? tbl_df:我正在寻找"arima",并且有几十个(即使不是几百个)点击数;我用

Inspired by @J_F who suggested ??tbl_df: I was looking for 'arima' and had dozens if not hundreds of hits; I narrowed them down using

help.search('arima', fields=c('name'), ignore.case=FALSE, agrep=FALSE)

(最重要的是,agrep = FALSE关闭模糊匹配)

(most importantly, agrep=FALSE turns off fuzzy matching)

这篇关于如何在加载包之前知道R中特定功能属于哪个包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆