Description Usage Arguments Utilities Note
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.
1 | conformist(x)
|
x |
object to be conformed. |
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.
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.