我以前使用成功的R功能不再起作用

发布于 2025-02-13 02:35:28 字数 1115 浏览 2 评论 0原文

我正在尝试为此数据集创建一个摘要,

 Morph ID black white orange green
1      O  1     2     1      0     3
2      O  2     2     1      3     0
3      O  3     2     1      1     2
4      O  4     3     0      2     1
5      O  5     3     0      2     1
6      O  6     3     0      1     2
7      O  7     3     0      1     2
8      O  8     3     0      3     0
9      O  9     0     3      2     1
10     O 10     3     0      3     0
11     O 11     3     0      1     2
12     O 12     0     3      2     1
13     O 13     3     0      2     1
14     O 14     3     0      2     1
15     O 15     2     1      1     2

然后使用具有完全相同格式的数据集创建下面的摘要。

            n      mean       sd min Q1 median Q3 max percZero Choice        se   
sum.greenO 15 0.8666667 1.187234   0  0      0  2   3 60.00000 Orange 0.3065424  
sum.greenG 15 2.1333333 1.187234   0  1      3  3   3 13.33333  Green 0.3065424 

我使用了该函数总结(),但是此功能不再工作。 我需要为以前的数据集创建相同的条形图,如果没有“ N”,“ SD”或“ SE”,我将无法做到。 (我使用“ n”和“ sd”创建了“ SE” - 它不带有初始函数输出)。

我对函数如何停止工作感到困惑?我有没有知道的替代功能?

请让我知道这没有任何意义。

I am trying to create a summary for this data set

 Morph ID black white orange green
1      O  1     2     1      0     3
2      O  2     2     1      3     0
3      O  3     2     1      1     2
4      O  4     3     0      2     1
5      O  5     3     0      2     1
6      O  6     3     0      1     2
7      O  7     3     0      1     2
8      O  8     3     0      3     0
9      O  9     0     3      2     1
10     O 10     3     0      3     0
11     O 11     3     0      1     2
12     O 12     0     3      2     1
13     O 13     3     0      2     1
14     O 14     3     0      2     1
15     O 15     2     1      1     2

I created the summary below before with a data set that has the exact same format.

            n      mean       sd min Q1 median Q3 max percZero Choice        se   
sum.greenO 15 0.8666667 1.187234   0  0      0  2   3 60.00000 Orange 0.3065424  
sum.greenG 15 2.1333333 1.187234   0  1      3  3   3 13.33333  Green 0.3065424 

I used the function Summarize() but this function is no longer working.
I need to create the same bar graph I made for this previous data set, which I can't do without "n", "sd", or "se". (I created "se" using "n" and "sd" - it didn't come with the initial function output).

I am confused about how a function can stop working? Is there an alternative function I am not aware of?

Please let me know if this doesn't make any sense.

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

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

发布评论

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

评论(1

飘逸的'云 2025-02-20 02:35:28

Cran上的以下R软件包都提供了一个名为“摘要”的功能:

> collidr::CRAN_packages_and_functions() %>% filter(function_names == "Summarize")
    package_names function_names
1        alakazam      Summarize
2          basket      Summarize
3          bayesm      Summarize
4       ChemoSpec      Summarize
5  ChemoSpecUtils      Summarize
6            cold      Summarize
7        dataMaid      Summarize
8          fastJT      Summarize
9             FSA      Summarize
10        GLMpack      Summarize
11        LAGOSNE      Summarize
12           lslx      Summarize
13         MapGAM      Summarize
14 MetaIntegrator      Summarize
15         NetMix      Summarize
16          PKNCA      Summarize
17        ppclust      Summarize
18            qad      Summarize
19  radiant.model      Summarize
20         ssmrob      Summarize

当然,不能保证您与其中一个摘要进行了先前的摘要,但希望这可以帮助您找到合适的函数。

The following R packages on CRAN all provide a function called "Summarize" with a capital S:

> collidr::CRAN_packages_and_functions() %>% filter(function_names == "Summarize")
    package_names function_names
1        alakazam      Summarize
2          basket      Summarize
3          bayesm      Summarize
4       ChemoSpec      Summarize
5  ChemoSpecUtils      Summarize
6            cold      Summarize
7        dataMaid      Summarize
8          fastJT      Summarize
9             FSA      Summarize
10        GLMpack      Summarize
11        LAGOSNE      Summarize
12           lslx      Summarize
13         MapGAM      Summarize
14 MetaIntegrator      Summarize
15         NetMix      Summarize
16          PKNCA      Summarize
17        ppclust      Summarize
18            qad      Summarize
19  radiant.model      Summarize
20         ssmrob      Summarize

Of course it is not guaranteed you made the previous summary with one of them, but hopefully this helps you find the right one.

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