TrimVar: Trim variables

Description Usage Arguments Value Examples

View source: R/TrimVar_m0.R

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"))

derecost/LOGAN documentation built on June 19, 2020, 6:40 p.m.