QIIME2R ->Error in UseMethod("left_join")

@jbisanz z

Hi,
I am following this tutorial, GitHub - jbisanz/qiime2R: Import qiime2 artifacts to R, and have this error message when I reach alpha diversity step

Error in UseMethod("left_join") : **
** no applicable method for 'left_join' applied to an object of class "character"

yes most of my metadata file are chracters as when I was making it categorical I was getting another different error message unfortunately so instead of categorical I wrote character

Here is my metadata file

A_crassa.tsv (3.1 KB)

Thanks in advance for your help

Could you post the particular code you are running when you hit this issue?

metadata<-
metadata %>% 
  left_join(shannon)
head(metadata)

R output

metadata<-

  • metadata %>%
  • left_join(shannon)
    Error in UseMethod("left_join") :
    no applicable method for 'left_join' applied to an object of class "character"

head(metadata)

You are sure you have a data.frame or tibble called shannon as opposed to a character vector? What happens if you look at class(shannon) or head(shannon)?

> class(shannon)
[1] "list"
library(dplyr)    # alternatively, this also loads %>%

head(shannon) 
$uuid
[1] "43a6f70d-6910-415d-aa5e-1ca02bce7852"

$type
[1] "SampleData[AlphaDiversity]"

$format
[1] "AlphaDiversityDirectoryFormat"

$contents
                                                                                                            files.Name
1                                                                   43a6f70d-6910-415d-aa5e-1ca02bce7852/metadata.yaml
2                                                                         43a6f70d-6910-415d-aa5e-1ca02bce7852/VERSION
3                                                                   43a6f70d-6910-415d-aa5e-1ca02bce7852/checksums.md5
4                                                        43a6f70d-6910-415d-aa5e-1ca02bce7852/data/alpha-diversity.tsv
5                                                        43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/metadata.yaml
6                                                              43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/VERSION
7                                                        43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/citations.bib
8         43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/1af469ed-9066-41cd-8066-1887a34e8cfc/metadata.yaml
9               43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/1af469ed-9066-41cd-8066-1887a34e8cfc/VERSION
10        43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/1af469ed-9066-41cd-8066-1887a34e8cfc/citations.bib
11   43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/1af469ed-9066-41cd-8066-1887a34e8cfc/action/action.yaml
12        43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/ec4b9b75-1951-4947-ac37-afe9e134f849/metadata.yaml
13              43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/ec4b9b75-1951-4947-ac37-afe9e134f849/VERSION
14        43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/ec4b9b75-1951-4947-ac37-afe9e134f849/citations.bib
15   43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/ec4b9b75-1951-4947-ac37-afe9e134f849/action/action.yaml
16        43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/06d61be9-63fe-48ca-901a-1928c0a1fc7f/metadata.yaml
17              43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/06d61be9-63fe-48ca-901a-1928c0a1fc7f/VERSION
18        43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/06d61be9-63fe-48ca-901a-1928c0a1fc7f/citations.bib
19   43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/06d61be9-63fe-48ca-901a-1928c0a1fc7f/action/action.yaml
20        43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/ebf80e57-99ca-4ef4-84c9-c545637724be/metadata.yaml
21              43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/ebf80e57-99ca-4ef4-84c9-c545637724be/VERSION
22        43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/ebf80e57-99ca-4ef4-84c9-c545637724be/citations.bib
23   43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/ebf80e57-99ca-4ef4-84c9-c545637724be/action/action.yaml
24        43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/4d0d08fd-a5f9-4aa6-9a46-b50bb9aeee84/metadata.yaml
25              43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/4d0d08fd-a5f9-4aa6-9a46-b50bb9aeee84/VERSION
26        43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/4d0d08fd-a5f9-4aa6-9a46-b50bb9aeee84/citations.bib
27   43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/4d0d08fd-a5f9-4aa6-9a46-b50bb9aeee84/action/action.yaml
28        43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/c4d84d5d-1223-4906-b4cd-a5ec038fded8/metadata.yaml
29              43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/c4d84d5d-1223-4906-b4cd-a5ec038fded8/VERSION
30        43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/c4d84d5d-1223-4906-b4cd-a5ec038fded8/citations.bib
31   43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/c4d84d5d-1223-4906-b4cd-a5ec038fded8/action/action.yaml
32        43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/40659903-24de-4831-b3ca-9001ca3ca2d9/metadata.yaml
33              43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/40659903-24de-4831-b3ca-9001ca3ca2d9/VERSION
34        43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/40659903-24de-4831-b3ca-9001ca3ca2d9/citations.bib
35   43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/40659903-24de-4831-b3ca-9001ca3ca2d9/action/action.yaml
36        43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/d8127c92-a173-4693-a08d-03caea52ae65/metadata.yaml
37              43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/d8127c92-a173-4693-a08d-03caea52ae65/VERSION
38        43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/d8127c92-a173-4693-a08d-03caea52ae65/citations.bib
39   43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/d8127c92-a173-4693-a08d-03caea52ae65/action/action.yaml
40        43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/3a88a5a8-56ee-43fd-ab59-b595e7b6245e/metadata.yaml
41              43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/3a88a5a8-56ee-43fd-ab59-b595e7b6245e/VERSION
42        43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/3a88a5a8-56ee-43fd-ab59-b595e7b6245e/citations.bib
43   43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/3a88a5a8-56ee-43fd-ab59-b595e7b6245e/action/action.yaml
44        43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/a0db8b0f-5fbf-4450-9783-b58cc6a70741/metadata.yaml
45              43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/a0db8b0f-5fbf-4450-9783-b58cc6a70741/VERSION
46        43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/a0db8b0f-5fbf-4450-9783-b58cc6a70741/citations.bib
47   43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/a0db8b0f-5fbf-4450-9783-b58cc6a70741/action/action.yaml
48        43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/017e3ee0-0a12-478d-afaf-549b7cfe8ed6/metadata.yaml
49              43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/017e3ee0-0a12-478d-afaf-549b7cfe8ed6/VERSION
50        43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/017e3ee0-0a12-478d-afaf-549b7cfe8ed6/citations.bib
51   43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/017e3ee0-0a12-478d-afaf-549b7cfe8ed6/action/action.yaml
52        43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/a66fb06b-5d33-4d90-aaa0-ba0306d5ca58/metadata.yaml
53              43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/a66fb06b-5d33-4d90-aaa0-ba0306d5ca58/VERSION
54        43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/a66fb06b-5d33-4d90-aaa0-ba0306d5ca58/citations.bib
55   43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/a66fb06b-5d33-4d90-aaa0-ba0306d5ca58/action/action.yaml
56        43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/213303ad-1902-48c5-8153-3123bc238a01/metadata.yaml
57              43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/213303ad-1902-48c5-8153-3123bc238a01/VERSION
58        43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/213303ad-1902-48c5-8153-3123bc238a01/citations.bib
59   43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/213303ad-1902-48c5-8153-3123bc238a01/action/action.yaml
60        43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/bc82666e-1921-47f8-932e-6bb16aed1fe7/metadata.yaml
61              43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/bc82666e-1921-47f8-932e-6bb16aed1fe7/VERSION
62        43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/bc82666e-1921-47f8-932e-6bb16aed1fe7/citations.bib
63   43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/bc82666e-1921-47f8-932e-6bb16aed1fe7/action/action.yaml
64        43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/8ae4fe1d-0524-4a26-9eb9-7e730e5e6d21/metadata.yaml
65              43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/8ae4fe1d-0524-4a26-9eb9-7e730e5e6d21/VERSION
66        43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/8ae4fe1d-0524-4a26-9eb9-7e730e5e6d21/citations.bib
67   43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/8ae4fe1d-0524-4a26-9eb9-7e730e5e6d21/action/action.yaml
68        43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/5d5f8da9-d373-4358-91eb-ece02b470860/metadata.yaml
69              43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/5d5f8da9-d373-4358-91eb-ece02b470860/VERSION
70        43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/5d5f8da9-d373-4358-91eb-ece02b470860/citations.bib
71  43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/5d5f8da9-d373-4358-91eb-ece02b470860/action/metadata.tsv
72   43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/5d5f8da9-d373-4358-91eb-ece02b470860/action/action.yaml
73        43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/c639a32c-7e15-478a-a13d-fa02ed35f25f/metadata.yaml
74              43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/c639a32c-7e15-478a-a13d-fa02ed35f25f/VERSION
75        43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/c639a32c-7e15-478a-a13d-fa02ed35f25f/citations.bib
76   43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/c639a32c-7e15-478a-a13d-fa02ed35f25f/action/action.yaml
77        43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/c4a2deac-caca-4e40-aee7-7aba12ee488a/metadata.yaml
78              43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/c4a2deac-caca-4e40-aee7-7aba12ee488a/VERSION
79        43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/c4a2deac-caca-4e40-aee7-7aba12ee488a/citations.bib
80   43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/c4a2deac-caca-4e40-aee7-7aba12ee488a/action/action.yaml
81        43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/3c54a345-0bfe-4d2d-a4cb-ed35a386492a/metadata.yaml
82              43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/3c54a345-0bfe-4d2d-a4cb-ed35a386492a/VERSION
83        43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/3c54a345-0bfe-4d2d-a4cb-ed35a386492a/citations.bib
84   43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/3c54a345-0bfe-4d2d-a4cb-ed35a386492a/action/action.yaml
85        43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/a56dae5b-302b-40e3-b273-5dcd9c7cc798/metadata.yaml
86              43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/a56dae5b-302b-40e3-b273-5dcd9c7cc798/VERSION
87        43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/a56dae5b-302b-40e3-b273-5dcd9c7cc798/citations.bib
88   43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/a56dae5b-302b-40e3-b273-5dcd9c7cc798/action/action.yaml
89        43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/9cde35af-4dfb-4fe4-87c4-91f08beb70a2/metadata.yaml
90              43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/9cde35af-4dfb-4fe4-87c4-91f08beb70a2/VERSION
91        43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/9cde35af-4dfb-4fe4-87c4-91f08beb70a2/citations.bib
92   43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/9cde35af-4dfb-4fe4-87c4-91f08beb70a2/action/action.yaml
93        43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/4b4a867d-f786-4653-bc59-3046e2ee1610/metadata.yaml
94              43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/4b4a867d-f786-4653-bc59-3046e2ee1610/VERSION
95        43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/4b4a867d-f786-4653-bc59-3046e2ee1610/citations.bib
96   43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/4b4a867d-f786-4653-bc59-3046e2ee1610/action/action.yaml
97        43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/982b1a37-b61e-4ed1-b9a1-114140c64fd5/metadata.yaml
98              43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/982b1a37-b61e-4ed1-b9a1-114140c64fd5/VERSION
99        43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/982b1a37-b61e-4ed1-b9a1-114140c64fd5/citations.bib
100  43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/982b1a37-b61e-4ed1-b9a1-114140c64fd5/action/action.yaml
101       43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/9044effe-f80b-4f4d-9591-32dfd62eb3ce/metadata.yaml
102             43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/9044effe-f80b-4f4d-9591-32dfd62eb3ce/VERSION
103       43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/9044effe-f80b-4f4d-9591-32dfd62eb3ce/citations.bib
104  43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/9044effe-f80b-4f4d-9591-32dfd62eb3ce/action/action.yaml
105       43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/29d8fc57-d276-4301-ad33-72225e717ea3/metadata.yaml
106             43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/29d8fc57-d276-4301-ad33-72225e717ea3/VERSION
107       43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/29d8fc57-d276-4301-ad33-72225e717ea3/citations.bib
108  43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/29d8fc57-d276-4301-ad33-72225e717ea3/action/action.yaml
109       43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/bd775da4-f2a7-422a-a389-4a7ef06e7972/metadata.yaml
110             43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/bd775da4-f2a7-422a-a389-4a7ef06e7972/VERSION
111       43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/bd775da4-f2a7-422a-a389-4a7ef06e7972/citations.bib
112  43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/bd775da4-f2a7-422a-a389-4a7ef06e7972/action/action.yaml
113       43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/53ce69fe-3bbc-4010-8c13-be3024b8139c/metadata.yaml
114             43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/53ce69fe-3bbc-4010-8c13-be3024b8139c/VERSION
115       43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/53ce69fe-3bbc-4010-8c13-be3024b8139c/citations.bib
116  43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/53ce69fe-3bbc-4010-8c13-be3024b8139c/action/action.yaml
117       43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/ba3912b0-f1f2-4740-bbf5-efd3f2a9b592/metadata.yaml
118             43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/ba3912b0-f1f2-4740-bbf5-efd3f2a9b592/VERSION
119       43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/ba3912b0-f1f2-4740-bbf5-efd3f2a9b592/citations.bib
120  43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/ba3912b0-f1f2-4740-bbf5-efd3f2a9b592/action/action.yaml
121       43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/fe60326e-25ec-4379-86d6-8d7eede839f7/metadata.yaml
122             43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/fe60326e-25ec-4379-86d6-8d7eede839f7/VERSION
123       43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/fe60326e-25ec-4379-86d6-8d7eede839f7/citations.bib
124  43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/fe60326e-25ec-4379-86d6-8d7eede839f7/action/action.yaml
125       43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/790c8e5c-f330-4ca7-acd0-da785197cc94/metadata.yaml
126             43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/790c8e5c-f330-4ca7-acd0-da785197cc94/VERSION
127       43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/790c8e5c-f330-4ca7-acd0-da785197cc94/citations.bib
128  43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/790c8e5c-f330-4ca7-acd0-da785197cc94/action/action.yaml
129       43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/4cea6987-da58-4c6e-a6c7-8f643d4c6993/metadata.yaml
130             43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/4cea6987-da58-4c6e-a6c7-8f643d4c6993/VERSION
131       43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/4cea6987-da58-4c6e-a6c7-8f643d4c6993/citations.bib
132  43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/4cea6987-da58-4c6e-a6c7-8f643d4c6993/action/action.yaml
133       43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/3375f2e9-e8ab-40ac-a5f8-06ffd31e6aa3/metadata.yaml
134             43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/3375f2e9-e8ab-40ac-a5f8-06ffd31e6aa3/VERSION
135       43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/3375f2e9-e8ab-40ac-a5f8-06ffd31e6aa3/citations.bib
136  43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/artifacts/3375f2e9-e8ab-40ac-a5f8-06ffd31e6aa3/action/action.yaml
137                                                43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/action/metadata.tsv
138                                                 43a6f70d-6910-415d-aa5e-1ca02bce7852/provenance/action/action.yaml
    files.Length          files.Date size
1            114 2022-06-13 17:43:00 4096
2             39 2022-06-13 17:43:00 4096
3          14097 2022-06-13 17:43:00 4096
4            390 2022-06-13 17:43:00 4096
5            114 2022-06-13 17:43:00 4096
6             39 2022-06-13 17:43:00 4096
7           2774 2022-06-13 17:43:00 4096
8            106 2022-06-13 17:43:00 4096
9             39 2022-06-13 17:43:00 4096
10          4865 2022-06-13 17:43:00 4096
11          7079 2022-06-13 17:43:00 4096
12           136 2022-06-13 17:43:00 4096
13            39 2022-06-13 17:43:00 4096
14          3118 2022-06-13 17:43:00 4096
15          6316 2022-06-13 17:43:00 4096
16           106 2022-06-13 17:43:00 4096
17            39 2022-06-13 17:43:00 4096
18          3948 2022-06-13 17:43:00 4096
19          6622 2022-06-13 17:43:00 4096
20            97 2022-06-13 17:43:00 4096
21            39 2022-06-13 17:43:00 4096
22          2774 2022-06-13 17:43:00 4096
23          5736 2022-06-13 17:43:00 4096
24           110 2022-06-13 17:43:00 4096
25            39 2022-06-13 17:43:00 4096
26          4203 2022-06-13 17:43:00 4096
27          6002 2022-06-13 17:43:00 4096
28           107 2022-06-13 17:43:00 4096
29            39 2022-06-13 17:43:00 4096
30          3244 2022-06-13 17:43:00 4096
31          6144 2022-06-13 17:43:00 4096
32           106 2022-06-13 17:43:00 4096
33            39 2022-06-13 17:43:00 4096
34          3948 2022-06-13 17:43:00 4096
35          6622 2022-06-13 17:43:00 4096
36           113 2022-06-13 17:43:00 4096
37            39 2022-06-13 17:43:00 4096
38          3244 2022-06-13 17:43:00 4096
39          5683 2022-06-13 17:43:00 4096
40           121 2022-06-13 17:43:00 4096
41            39 2022-06-13 17:43:00 4096
42          3192 2022-06-13 17:43:00 4096
43          5975 2022-06-13 17:43:00 4096
44           107 2022-06-13 17:43:00 4096
45            39 2022-06-13 17:43:00 4096
46          3948 2022-06-13 17:43:00 4096
47          6479 2022-06-13 17:43:00 4096
48           107 2022-06-13 17:43:00 4096
49            39 2022-06-13 17:43:00 4096
50          3100 2022-06-13 17:43:00 4096
51          6470 2022-06-13 17:43:00 4096
52            99 2022-06-13 17:43:00 4096
53            39 2022-06-13 17:43:00 4096
54          3151 2022-06-13 17:43:00 4096
55          5945 2022-06-13 17:43:00 4096
56           114 2022-06-13 17:43:00 4096
57            39 2022-06-13 17:43:00 4096
58          4569 2022-06-13 17:43:00 4096
59          6295 2022-06-13 17:43:00 4096
60           113 2022-06-13 17:43:00 4096
61            39 2022-06-13 17:43:00 4096
62          3244 2022-06-13 17:43:00 4096
63          5672 2022-06-13 17:43:00 4096
64           106 2022-06-13 17:43:00 4096
65            39 2022-06-13 17:43:00 4096
66          4232 2022-06-13 17:43:00 4096
67          6462 2022-06-13 17:43:00 4096
68           114 2022-06-13 17:43:00 4096
69            39 2022-06-13 17:43:00 4096
70          2774 2022-06-13 17:43:00 4096
71          3199 2022-06-13 17:43:00 4096
72          5709 2022-06-13 17:43:00 4096
73           106 2022-06-13 17:43:00 4096
74            39 2022-06-13 17:43:00 4096
75          4203 2022-06-13 17:43:00 4096
76          6001 2022-06-13 17:43:00 4096
77           121 2022-06-13 17:43:00 4096
78            39 2022-06-13 17:43:00 4096
79          3097 2022-06-13 17:43:00 4096
80          6148 2022-06-13 17:43:00 4096
81            97 2022-06-13 17:43:00 4096
82            39 2022-06-13 17:43:00 4096
83          2774 2022-06-13 17:43:00 4096
84          5946 2022-06-13 17:43:00 4096
85           107 2022-06-13 17:43:00 4096
86            39 2022-06-13 17:43:00 4096
87          3304 2022-06-13 17:43:00 4096
88          6268 2022-06-13 17:43:00 4096
89            96 2022-06-13 17:43:00 4096
90            39 2022-06-13 17:43:00 4096
91          4375 2022-06-13 17:43:00 4096
92          6392 2022-06-13 17:43:00 4096
93           110 2022-06-13 17:43:00 4096
94            39 2022-06-13 17:43:00 4096
95          2774 2022-06-13 17:43:00 4096
96          5594 2022-06-13 17:43:00 4096
97           107 2022-06-13 17:43:00 4096
98            39 2022-06-13 17:43:00 4096
99          3948 2022-06-13 17:43:00 4096
100         6479 2022-06-13 17:43:00 4096
101          117 2022-06-13 17:43:00 4096
102           39 2022-06-13 17:43:00 4096
103         4240 2022-06-13 17:43:00 4096
104         7218 2022-06-13 17:43:00 4096
105           97 2022-06-13 17:43:00 4096
106           39 2022-06-13 17:43:00 4096
107         2774 2022-06-13 17:43:00 4096
108         5548 2022-06-13 17:43:00 4096
109          139 2022-06-13 17:43:00 4096
110           39 2022-06-13 17:43:00 4096
111         2774 2022-06-13 17:43:00 4096
112         5663 2022-06-13 17:43:00 4096
113          107 2022-06-13 17:43:00 4096
114           39 2022-06-13 17:43:00 4096
115         3570 2022-06-13 17:43:00 4096
116         6490 2022-06-13 17:43:00 4096
117          107 2022-06-13 17:43:00 4096
118           39 2022-06-13 17:43:00 4096
119         3244 2022-06-13 17:43:00 4096
120         6121 2022-06-13 17:43:00 4096
121          107 2022-06-13 17:43:00 4096
122           39 2022-06-13 17:43:00 4096
123         3257 2022-06-13 17:43:00 4096
124         6323 2022-06-13 17:43:00 4096
125          139 2022-06-13 17:43:00 4096
126           39 2022-06-13 17:43:00 4096
127         3053 2022-06-13 17:43:00 4096
128         6500 2022-06-13 17:43:00 4096
129           96 2022-06-13 17:43:00 4096
130           39 2022-06-13 17:43:00 4096
131         4482 2022-06-13 17:43:00 4096
132         6330 2022-06-13 17:43:00 4096
133           96 2022-06-13 17:43:00 4096
134           39 2022-06-13 17:43:00 4096
135         3660 2022-06-13 17:43:00 4096
136         6554 2022-06-13 17:43:00 4096
137         3199 2022-06-13 17:43:00 4096
138         5771 2022-06-13 17:43:00 4096

$version
          V1       V2
1      QIIME        2
2   archive:        5
3 framework: 2022.2.0

$data
       shannon_entropy
21Sed         8.318284
1Fg           3.627257
16Sg          7.214736
18Sg          8.294759
22Sed         8.216674
11Mg          7.324532
26SeaW        3.841162
20Sed         8.130349
14Mg          6.951016
2Mg           5.556254
25SeaW        3.357751
19Sg          7.907720
23Sed         8.447286
5Mg           6.886908
3Hg           7.206186
6Hg           7.351017
library(dplyr)    # alternatively, this also loads %>%

Right, so that is not a table-like object. I think you missed this line in the tutorial:

shannon<-shannon$data %>% rownames_to_column("SampleID") # this moves the sample names to a new column that matches the metadata and allows them to be merged

Thanks it works somehow now.

rigth now i am running

metadata %>%
filter(!is.na(shannon)) %>%
ggplot(aes(x=SampleID, y=shannon, color=Sample_type)) +
stat_summary(geom="errorbar", fun.data=mean_se, width=0) +
stat_summary(geom="line", fun.data=mean_se) +
stat_summary(geom="point", fun.data=mean_se) +
xlab("Samples") +
ylab("Shannon Diversity") +
theme_q2r() + # try other themes like theme_bw() or theme_classic()
scale_color_viridis_d(name="Sample_type") # use different color scale which is color blind friendly
ggsave("Shannon_by_Sample_type.pdf", height=3, width=4, device="pdf") # save a PDF 3 inches by 4 inches

but unfortunately getting this error message

rlang::last_error()
<error/rlang_error>
Error in filter():
! Problem while computing ..1 = !is.na(shannon).
:heavy_multiplication_x: Input ..1 must be a logical vector, not a logical[,2].


Backtrace:

  1. metadata %>% filter(!is.na(shannon)) %>% ...
  2. dplyr:::filter.data.frame(., !is.na(shannon))
    Run rlang::last_trace() to see the full context.

Sorry, I am an R beginner