separate_on_multiple: Function to separate a string variable into to columns using...

Description Usage Arguments Value Author(s) References

View source: R/separate_on_multiple.R

Description

The following function helps you in separating a variable into two column using up to three separators

Usage

1
2
separate_on_multiple(data, var_to_separate, sep1, sep2 = NULL,
  sep3 = NULL)

Arguments

data

the dataset containing the variable that needs to be separated

var_to_separate

the variable that needs to be separated

sep1

the first separator included in the variable that needs to be separated

sep2

the second separator included in the variable that needs to be separated (default is NULL)

sep3

the third separator included in the variable that needs to be separated (defaul is NULL)

Value

the @param var_to_separate will be divided into two column based on the included separators

Author(s)

Alberto Gualtieri, alberto.gualtieri@reach-initiative.org

References

https://github.com/agualtieri/dataqualitycontrol


agualtieri/dataqualitycontrol documentation built on Aug. 22, 2019, 9:58 p.m.