extract_e-method: Extract Entity number from EPDr objects

Description Usage Arguments Value Examples

Description

This function looks into EPDr objects (i.e., epd.entity-class or epd.entity.df-class classes), returning the entity number of the objects.

Usage

1
2
3
4
extract_e(x)

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

Arguments

x

epd.entity Any object of classes epd.entity-class or epd.entity.df-class.

Value

numeric. Value of the entity number.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
epd.connection <- connectToEPD()
# To list all the tables in the database we have connected with
epd.1 <- get_entity(1, epd.connection)
extract_e(epd.1)
[1] 1
epd.45 <- get_entity(45, epd.connection)
extract_e(epd.45)
[1] 45

## End(Not run)

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