Learn R Programming

esvis (version 0.2.0)

create_vec: Create a named vector of all possible combinations

Description

Alternative to tidied data frame return.

Usage

create_vec(levs, fun)

Arguments

levs

The levels of the grouping factor from which to create the matrix

fun

The function to apply.

Value

Matrix of values according to the function supplied.