change_case: Change case

View source: R/change_case.R

change_caseR Documentation

Change case

Description

Randomly switch between title case and lowercase for character strings

Usage

change_case(data, cols = NULL, messiness = 0.1, case_type = "word")

Arguments

data

input dataframe

cols

set of columns to apply transformation to. If NULL will apply to all columns. Default NULL.

messiness

Percentage of values to change. Must be between 0 and 1. Default 0.1.

case_type

Whether the case should change based on the "word" or "letter".

Value

a dataframe the same size as the input data.

Examples

change_case(mtcars)

messy documentation built on April 3, 2025, 6:16 p.m.