remove_restricted: Remove restricted data 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). The function parses all the elements on the list and remove those with restriction on their use. See check_restriction.

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 <- list_e(epd.connection, country=c("Spain"))
e.list <- e.list$e_
epd.spain <- lapply(e.list, get_entity, epd.connection)
epd.spain.un <- remove_restricted(epd.spain)
length(epd.spain)
length(epd.spain.un)

## End(Not run)

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