remove_wo_ages: Remove data without ages 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 EPDr objects (epd.entity.df-class, or epd.entity-class). The function parses all the elements on the list and remove those without a default chronology (see check_defaultchron).

Usage

1

Arguments

list

List of EPDr objects (epd.entity.df-class, or epd.entity-class)

Value

List of EPDr objects.

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("Spain"))
e.list <- e.list$e_
spain <- lapply(e.list, get_entity, epd.connection)
spain.wo <- remove_wo_ages(spain)
length(spain.agedcounts)
length(spain.agedcounts.wo)

## End(Not run)

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