split_categories: A Splitting Categories Function

Description Usage Arguments Examples

View source: R/split_categories_function.R

Description

This function splits a single dataframe into multiple dataframes when there is more than one category present that would be more beneficial as individual data layers in EarthTime. It assumes that the dataframe is already in a "wide" format. If not, please use the choropleth() function in this package before invoking split_categories().

Usage

1
split_categories(dataframe, categories_column)

Arguments

dataframe

Specify the name of the wide dataframe that should be split.

categories_column

Specify the column name (in quotes) or the column number that contains the various categories.

Examples

1
2
3
4
## Not run: 
split_categories(dataframe, categories_column)

## End(Not run)

andrewcberkley/EarthTimeR documentation built on Dec. 19, 2021, 3:33 a.m.