swap_char: Swaps character elements around strings

Description Usage Arguments Value Examples

View source: R/padis_general_functions.R

Description

This function is useful to generate the item names that are needed for the transformation from long to wide format

Usage

1
swap_char(string, separator = ".", unifyer = "_")

Arguments

string

The string that should be swapped

separator

The separator where the stringr should be splitted (takes always the first hit)

unifyer

The character stringr with which the string should be merged again

Value

Returns a character stringr

Examples

1
swap_char("this.string", ".", "_")

kthorstmann/padis documentation built on May 24, 2019, 5:01 a.m.