如何解决加载库 R 后找不到函数
我在使用 R 中的 startsWith
函数时遇到了一些问题。
library(data.table)
library(gdata)
help.search("startsWith");
print(startsWith("test","t"));
我也尝试使用 gdata::startsWith("test","t")
或 gdata:::startsWith("test","t")
但什么都没有改变。
我得到的错误如下:
Error in get(name,envir = ns,inherits = FALSE) :
oggetto "startsWith" non trovato
Calls: print -> <Anonymous> -> :: -> getExportedValue -> get
gdata: read.xls support for 'XLS' (Excel 97-2004) files ENABLED.
gdata: read.xls support for 'XLSX' (Excel 2007+) files ENABLED.
Attaching package: ‘gdata’
The following objects are masked from ‘package:data.table’:
first,last
The following object is masked from ‘package:stats’:
nobs
The following object is masked from ‘package:utils’:
object.size
Help files with alias or concept or title matching ‘startsWith’ using
fuzzy matching:
dplyr::reexports Objects exported from other packages
Aliases: starts_with
gdata::startsWith Determine if a character string "starts with"
with the specified characters.
Aliases: startsWith
tidyselect::select_helpers
Select helpers
Aliases: starts_with
Type '?PKG::FOO' to inspect entries 'PKG::FOO',or 'TYPE?PKG::FOO' for
entries like 'PKG::FOO-TYPE'.
您对如何解决这个问题有什么建议吗? (我已经尝试删除并再次安装该库)。
提前致谢。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。