conformist: conformist

Description Usage Arguments Utilities Note

View source: R/conformist.R

Description

The conformist package conforms data to one or more predetermined standards. At the present time, this mostly applies to names of variables and values.

Changes (names) to conformed standard.

Usage

1

Arguments

x

object to be conformed.

Utilities

There are three main utilities:

lookup is a sophisticated lookup utility based on the searchables and stringr/i packages. This allows looking up the values in any named object, i.e. the object has a names method.

abbreviations maps strings and tokens into abbreviations according toa dictionary of abbreviations. A 2,634 long abbreviation is included.

conform is the workhorse of the package. It is designed so that the developer can set a simple set of rules in the global option conform and applies by calling the conform functions, usually with no arguments. This is greatly facilitated by the pipe operator %>%, both for defining the conformation as well as implementing it.

Note

It is very likely that the interface is likely to change and functions maybe refactored possibly into other packages.

lookup might become part of a 'dictionary' or 'lookup' package.

abbreviations might become part of the lettercase package and expand its scope to handling abbreviations in addition to capitalization and spacing.


decisionpatterns/conformist documentation built on Nov. 4, 2019, 10:23 a.m.