add_whitespace: Add whitespaces

View source: R/add_whitespace.R

add_whitespaceR Documentation

Add whitespaces

Description

Randomly add whitespaces to the end of some values in all or a subset of columns.

Usage

add_whitespace(data, cols = NULL, messiness = 0.1)

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.

Value

a dataframe the same size as the input data.

Examples

add_whitespace(mtcars)

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