View source: R/advanced_R_studies.R
Takes in a dataframe, and returns a dataframe of Trafficking Instance count.
1 | traffickingInstanceCount(df, cols, by_col = NA)
|
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'. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.