README.md

caser

An R package for converting strings and dataframe column names among common separator and casing styles.

To Do

convert_string

# warning("Multiple separator candidates detected.\n",
#         paste0("* Detected:", candidate_seps, "\n"),
#         "* All will be used as separators.",
#         "* You can control this behavior with 'source_sep` and `ignore`.\n")

convert_strings

caser (overall)

Introduction

Ever find yourself dealing with a dataframe with unruly column names? Or with a formatting/casing style you find a bit awkward? Ever wish there was a convenient function for flipping your code-friendly variable names to print-friendly (and vice versa)?

The caser package has a very simple purpose: Help you convert strings - including vectors of strings such as dataframe column names - to a target naming/formatting convention.

caser is designed to take advantage of the fact that most naming and formatting conventions tinker with two string properties: the separator between words and the word capitalization rules. By specifying a separator style and a capitilization style, you can quickly flip strings among the most common naming/formatting conventions (or come up with your own fancy pants ones).

The rest of this document describes what styles are supported and what the major pieces of the package are.

Supported Separator Styles

Supported Casing Styles

Key Package Functions

IN PROGRESS.

Useful Resources



bwaismeyer/caser documentation built on May 13, 2019, 9:05 a.m.