Description Usage Arguments Examples
A function to to add a row for each instance where a comma-seperated string occurs in a column (e.g. if a cell contains the string "Atlantic, Pacific, Arctic this suction will replace the row with three rows containing "Atlantic", "Pacific" and "Arctic"). This is useful when compiling summary statistics for species that occur in multiple oceans.
1 | expand_ocean(data, column_name)
|
data |
The data frame containing the rows to expand |
column_name |
The column name holding the string to expand the data over in quotes (e.g. "Ocean"). |
1 | expand_ocean(data, "ocean")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.