如果我在R中导入了数据框,并且可以运行Asseciate()为什么ALL_CORRAINATION会给我一个错误?

发布于 2025-01-28 06:37:04 字数 336 浏览 1 评论 0原文

我所拥有的只是一个简单的数据帧,其中有27列和100行

我继续遇到以下错误,尽管简单的代码行与其他类导入的数据的其他示例一起使用?

all_corlations(mdefault,sorted =“强度”) all_corlations中的错误(mdefault,sorted =“强度”): 此功能仅接受数据帧。 mdefault是spec_tbl_df 此功能仅接受数据帧。 mdefault是tbl_df 此功能仅接受数据帧。 Mdefault是TBL 此功能仅接受数据帧。 mdefault是一个data.frame

说明:DF [100 x 27]

All I have is a simple dataframe with 27 columns and 100 rows

I continue to get the following error although the simple line of code works with other example of imported data from class?

all_correlations(MDEFAULT,sorted="strength")
Error in all_correlations(MDEFAULT, sorted = "strength") :
This function only accepts data frames. MDEFAULT is a spec_tbl_df
This function only accepts data frames. MDEFAULT is a tbl_df
This function only accepts data frames. MDEFAULT is a tbl
This function only accepts data frames. MDEFAULT is a data.frame

Description:df [100 x 27]

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

夏尔 2025-02-04 06:37:04

在阅读了错误消息后,我猜测问题是您的数据是以TBL_DF格式,其相似但不相同的数据框架格式,该格式的功能是专门收到的。

尝试

your_data <- as.data.frame(your_data)

像我所说的那样,请尝试在运行Associate()之前

,这是一个猜测。您的问题没有足够的信息。

After reading the error message im guessing the problem is your data are in tbl_df format, a tibble its similar but not identical a data frame format whose function are requering specifically.

Try to simply

your_data <- as.data.frame(your_data)

Before runing associate()

Like i said, thats a guess. Your question hasnt enough information.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文