filter_taxagroups: Filter Taxa Groups

Description Usage Arguments Value Examples

Description

This function removes taxa from the slot @commdf@counts in the epd.entity.df-class object based on specific groups of taxa. For example, the user can select to work only with pollen from trees and shrubs (TRSH) or with algae (ALGA). If x is an epd.entity-class object, this is first converted into a epd.entity.df-class with entity_to_matrices.

Usage

1
2
3
4
5
6
7
filter_taxagroups(x, taxagroups)

## S4 method for signature 'epd.entity.df,character'
filter_taxagroups(x, taxagroups)

## S4 method for signature 'epd.entity,character'
filter_taxagroups(x, taxagroups)

Arguments

x

epd.entity Object of class epd.entity.df-class or epd.entity-class object.

taxagroups

character Character vector indicating taxa groups to be selected.

Value

The function returns a epd.entity.df-class with information on @commdf@counts slot only for taxa belonging to the specified taxa groups.

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
epd.connection <- connect_to_epd(host="localhost", database="epd",
                                 user="epdr", password="epdrpw")
epd.1 <- get_entity(1, epd.connection)
epd.1.trsh <- filter_taxagroups(epd.1, "TRSH")
str(epd.1@commdf@counts)
str(epd.1.trsh@commdf@counts)

## End(Not run)

dinilu/EPDr documentation built on Aug. 22, 2019, 1:03 p.m.