trim_spaces: Remove whitespace

View source: R/repair_and_replace.R

trim_spacesR Documentation

Remove whitespace

Description

Remove 'unnecessary' whitespace (leading spaces and trailing spaces for each cell value and either side of a given separator).

Usage

trim_spaces(data, value_sep = ";")

Arguments

data

A dataframe containing rows of systematic review data.

value_sep

A character used to separate values within the data. The default is set to ';'.

Value

Dataframe with whitespace removed.

Examples

## Not run: 
data <- trim_spaces(data);

## End(Not run)

softloud/sysrevdata documentation built on June 7, 2022, 1:21 p.m.