TrimVar {LOGAN} | R Documentation |
Trim variables
Description
TrimVar()
is a function that allows you to remove whitespace inside the
strings of a vector.
Usage
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
head(m0$TrimVar(cp025q01, "event"))
[Package LOGAN version 1.0.1 Index]