%>% {KraljicMatrix}R Documentation

Pipe functions

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


# 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)

[Package KraljicMatrix version 0.2.1 Index]