remove_wo_counts: Remove data without counts from a list of objects

Description Usage Arguments Value Examples

View source: R/EPDr-manipulate_lists_functions.R

Description

This function is designed to work with list of epd.entity.df-class objects. The function parses all the elements on the list and remove those without counts data for any taxa.

Usage

1

Arguments

list

List of epd.entity.df-class objects.

Value

List of epd.entity.df-class objects, which is a subset of 'list' with counts data.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
epd.connection <- connect_to_epd(host="localhost", database="epd",
                               user="epdr", password="epdrpw")
e.list <- listE(epd.connection, country=c("France"))
e.list <- e.list$e_
france <- lapply(e.list, get_entity, epd.connection)
france.wo <- remove_wo_counts(france)
length(france)
length(france.wo)

## End(Not run)

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