check_restriction: Check restrictions on EPDr objects

Description Usage Arguments Value Examples

Description

This function check EPDr objects (epd.entity-class, and epd.entity.df-class), and return a logical value indicating whether the data are restricted (TRUE) or unrestricted (FALSE).

Usage

1
2
3
4
check_restriction(x)

## S4 method for signature 'epd.entity'
check_restriction(x)

Arguments

x

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

Value

logical value indicating whether the data are restricted (TRUE) or unrestricted (FALSE).

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)
check_restriction(epd.1)
epd.1046 <- get_entity(1046, epd.connection)
check_restriction(epd.1046)

## End(Not run)

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