smd_dist: Create an SMD distance cell

View source: R/transform-smd.R

smd_distR Documentation

Create an SMD distance cell

Description

Create an SMD distance cell. It calls the smd function then formats the result. If the result rounds to all zeros then it appends a less than sign and bumps the least significant digit to one.

Usage

smd_dist(x, group, format, weight = NULL, ...)

Arguments

x

vector; variable to evaluate with smd

group

factor; A grouping to apply. Must have 2 levels.

format

formatting to apply to result

weight

numeric; Weighting to apply to computation. Defaults to NULL.

...

additional arguments to pass to cell generation

Value

a tangram cell


spgarbet/tg documentation built on Feb. 21, 2023, 3:35 a.m.