TrimVar: Trim variables

View source: R/TrimVar_m0.R

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


LOGAN documentation built on Oct. 25, 2022, 9:08 a.m.

Related to TrimVar in LOGAN...