Running examples in ‘taxize-Ex.R’ failed
The error most likely occurred in:

> ### Name: rankagg
> ### Title: Aggregate data by given taxonomic rank
> ### Aliases: rankagg
> 
> ### ** Examples
> 
> library("vegan")
Loading required package: permute
Loading required package: lattice
This is vegan 2.4-2
> data(dune.taxon, package='vegan')
> dat <- dune.taxon
> set.seed(1234)
> dat$abundance <- round(rlnorm(n=nrow(dat),meanlog=5,sdlog=2),0)
> rankagg(data=dat, datacol="abundance", rank="Genus")
            Genus   sum
1        Achillea    13
2        Agrostis   258
3            Aira  1298
4      Alopecurus     1
5    Anthoxanthum   350
6          Bellis   408
7   Brachythecium   144
8          Bromus    47
9  Calliergonella    23
10    Chenopodium    50
11        Cirsium    48
12        Comarum    25
13     Eleocharis    57
14         Elymus    20
15       Empetrum    31
16    Hypochaeris   169
17         Juncus  1130
18         Lolium    53
19       Plantago    24
20            Poa 18642
21     Ranunculus   194
22          Rumex    56
23         Sagina    61
24          Salix   372
25 Scorzoneroides    37
26      Trifolium   476
27          Vicia    19
> rankagg(data=dat, "abundance", rank="Family")
             Family   sum
1     Amaranthaceae    50
2        Asteraceae   675
3  Brachytheciaceae   144
4   Caryophyllaceae    61
5        Cyperaceae    57
6         Ericaceae    31
7          Fabaceae   495
8         Hypnaceae    23
9         Juncaceae  1130
10   Plantaginaceae    24
11          Poaceae 20669
12     Polygonaceae    56
13    Ranunculaceae   194
14         Rosaceae    25
15       Salicaceae   372
> rankagg(data=dat, "abundance", rank="Genus", fxn="mean")
            Genus mean
1        Achillea   13
2        Agrostis  258
3            Aira 1298
4      Alopecurus    1
5    Anthoxanthum  350
6          Bellis  408
7   Brachythecium  144
8          Bromus   47
9  Calliergonella   23
10    Chenopodium   50
11        Cirsium   48
12        Comarum   25
13     Eleocharis   57
14         Elymus   20
15       Empetrum   31
16    Hypochaeris  169
17         Juncus  565
18         Lolium   53
19       Plantago   24
20            Poa 9321
21     Ranunculus  194
22          Rumex   56
23         Sagina   61
24          Salix  372
25 Scorzoneroides   37
26      Trifolium  238
27          Vicia   19
> rankagg(data=dat, "abundance", rank="Class")
Error in `[.data.frame`(data, , rank) : undefined columns selected
Calls: rankagg ... aggregate.default -> aggregate.data.frame -> [ -> [.data.frame
Execution halted