traffickingInstanceCount: Select all rows that have a value in certain columns.

Description Usage Arguments

View source: R/advanced_R_studies.R

Description

Takes in a dataframe, and returns a dataframe of Trafficking Instance count.

Usage

1
traffickingInstanceCount(df, cols, by_col = NA)

Arguments

df

A dataframe of seizure data.

cols

The names of the columns that contain countries where each row was trafficked.

by_col

Optional. The name of a column that you want to striate your TI count by. For instance, 'Database1'.


C-Research/c4aRs documentation built on Sept. 2, 2021, 1:10 p.m.