TrimVar: Trim variables

Description Usage Arguments Value Examples

Description

TrimVar() is a function that allows you to remove whitespace inside the strings of a vector.

Usage

1
TrimVar(data, trim.vector)

Arguments

data

dataset

trim.vector

vector of variables on the dataset to be trimmed

Value

This function returns a vector removing trailing and leading spaces inside the original vector.

Examples

1
head(m0$TrimVar(cp025q01, "event"))

LOGAN documentation built on May 6, 2019, 1:02 a.m.