df_quantities_RIE_separate: Calculates or estimates RIE for raw and worked ivory seizures

Description Usage Arguments Details Value See Also Examples

View source: R/df_quantities_RIE_separate.R

Description

Produces a list of all seizures and their RIE for raw and worked ivory. For seizures where only the number of pieces is provided the weight is estimated.

Usage

1
2
df_quantities_RIE_separate(year.from = 1900, year.to = 2100,
  statusMin = 3, reg.model = "wt est.Rdata")

Arguments

year.from

Starting year

year.to

Ending year

statusMin

Minimum status of seizure record to include in summary (usually 3)

reg.model

.Rdata file that contains parameters for estimating weights from pieces

Details

This function interacts with the ETIS database, to extract seizure information. It also requires the wt est.Rdata file that was created by the last COP analysis to estimate the weight of seizures where only the number of pieces if provided. Note that since previous ETIS analyses, the model estimates weights from log(pieces + 1).

The main use of this function is to contribute to the calculation of two new database tables for law enforcement ratio and trade flow accounting.

This function is also used in the ETIS database to produce various summary tables

Value

A dataframe which lists for each seizure their: id, country of discovery, year & ivory quantities (weight and pieces) including RIE separately for raw and worked.
Note that seizures which are all non-ivory or are ivory seizuress with no information about quantities are excluded.

See Also

The dataframe is used in mult_ctries, and inout_tables_LE_TF_prep. These are then processed using inout_tables_LE_TF_final to give the final set of outputs.

Examples

1
2
3
4
5
6
year.from <- 1900
year.to <- 2100
statusMin <- 3

df.1 <- df_quantities_RIE_separate(year.from = year.from, year.to = year.to,
statusMin = statusMin, reg.model = 'wt est.Rdata')

fmunderwood/ETISdbase documentation built on Feb. 29, 2020, 12:46 a.m.