mat_spread_TR_FALSE: Spread data with TRUE/FALSE (from count)

mat_spread_TR_FALSER Documentation

Spread data with TRUE/FALSE (from count)

Description

Spread data with TRUE/FALSE (from count)

Usage

mat_spread_TR_FALSE(df, col, n_col = n)

Arguments

df

data

col

col to spread

n_col

name of n column

Examples

library(dplyr)
iris %>%
  count(is_low_6=Sepal.Length<6, Species) %>%
  mat_spread_TR_FALSE(is_low_6)

MatthieuStigler/matPkg documentation built on Sept. 19, 2024, 5:19 a.m.