project_to_simplex: project onto a standard 3d simplex.

Description Usage Arguments Value

View source: R/bands.R

Description

project onto a standard 3d simplex.

Usage

1
project_to_simplex(df_3d, column_names = c("x", "y", "z"))

Arguments

df_3d

data frame

column_names

names of columns for the 3 dimensions. Can be in the form c(x,y,z) or c("x","y","z").

Value

an updated version of df_3d with points projected onto simplex.


skgallagher/EpiCompare documentation built on Sept. 14, 2021, 5:45 a.m.