name_it: Automatically name metrics

Description Usage Arguments Details References Examples

View source: R/name_it.R

Description

Build a name from a naming function

Usage

1
2
3
4
5
6
7
name_it(x, fun)

## S3 method for class 'character'
name_it(x, fun)

## Default S3 method:
name_it(x, fun)

Arguments

fun

with_naming function

base

string that serves a the root to the name and passed as the first argument to the namer function

Details

A name is comprised of a prefix, base and suffix

References

Examples

1
2
3
4
5
6
7
nm_mean <- mean %>% set_namer

"price" %>% name_it( nm_mean )

 retail <- rnorm(50)
 
 retail %>% name_it(nm_mean)

decisionpatterns/nameit documentation built on Aug. 22, 2020, 4:18 a.m.