rename_category: Rename a category of 'stylo' data for 'stylo2gg'.

View source: R/rename_category.R

rename_categoryR Documentation

Rename a category of stylo data for stylo2gg.

Description

Rename a category of stylo data for stylo2gg.

Usage

rename_category(df, before, after)

Arguments

df

An object saved from running stylo on a corpus

before

A string representing the name of the category in the stylo object

after

A string representing the new name to be used for this category

Details

This change will not overwrite values in the originating df object.

Examples

## Not run: 
my_data <- stylo()
my_data %>% rename_category("NA", "unknown")

## End(Not run)


jmclawson/stylo2gg documentation built on Oct. 24, 2023, 4:54 a.m.