pipe: Pipe functions

Description Arguments Examples

Description

Like dplyr, KraljicMatrix also uses the pipe function, %>% to turn function composition into a series of imperative statements.

Arguments

lhs, rhs

An R object and a function to apply to it

Examples

1
2
3
4
5
6
7
8
9
# given the following \code{psc2} data set
psc2 <- dplyr::mutate(psc, x_SAVF_score = SAVF_score(x_attribute, 1, 5, .653),
                           y_SAVF_score = SAVF_score(y_attribute, 1, 10, .7))

# you can use the pipe operator to re-write the following:
kraljic_matrix(psc2, x_SAVF_score, y_SAVF_score)

# as
psc2 %>% kraljic_matrix(x_SAVF_score, y_SAVF_score)

KraljicMatrix documentation built on May 2, 2019, 2:32 p.m.