I am trying to use a BioManager package called Microbiome to determine alpha diversity in my data (mydata1). However I do get an error. This is shown below:
`> mydata1
Species
1 Streptococcus
2 Mycobacterium
3 Atopobium
4 Granulicatella
5 Actinomyces
6 Catonella
7 Homo
8 Macaca
9 unclassified (derived from Bacteria)
10 Eubacterium
11 Clostridium
12 Gemella
13 Lactobacillus
14 Sorghum
15 Rothia
16 Bifidobacterium
17 unclassified (derived from Clostridiales)
18 Bacillus
19 Canis
20 Ruminococcus
21 Schistosoma
22 Enterococcus
23 Danio
24 Neisseria
25 Pan
26 Lactococcus
27 unclassified (derived from Siphoviridae)
28 Staphylococcus
29 unclassified (derived from Clostridiales Family XI. Incertae Sedis)
30 Ciona
31 Mobiluncus
32 Veillonella
33 Prevotella
34 Peptostreptococcus
35 Olsenella
36 Loa
37 Nonionella
38 Oribacterium
39 Oryza
40 Shuttleworthia
41 Fusobacterium
42 Rattus
43 Moniezia
44 Collinsella
45 unclassified (derived from Erysipelotrichaceae)
46 Bacteroides
47 Xylosandrus
48 Slackia
49 Coprococcus
50 Pongo
Abundance
1 46927
2 11077
3 8951
4 4685
5 4016
6 1904
7 1000
8 688
9 568
10 530
11 259
12 253
13 124
14 115
15 112
16 99
17 85
18 81
19 81
20 80
21 80
22 77
23 72
24 67
25 64
26 62
27 62
28 61
29 58
30 56
31 54
32 54
33 45
34 44
35 41
36 39
37 38
38 37
39 34
40 33
41 32
42 32
43 31
44 27
45 27
46 24
47 23
48 22
49 22
50 22``
Dat1 <-microbiome::alpha(mydata1, index = "all")
Observed richness
Other forms of richness
Diversity
Error in sum(x) : invalid 'type' (character) of argument
kable(head(tab))
Error in head(tab) : object 'tab' not found
Dat1
Error: object 'Dat1' not found
Dat1 <-microbiome::alpha(mydata1, index = "all")
Observed richness
Other forms of richness
Diversity
Error in sum(x) : invalid 'type' (character) of argument
What could be accounting for this error please? Is the problem with the content of my data or what? I will be happy to get your help.
Regards,
J