Skip to contents

Filters the raw numeric data for a specific layer and statistic.

Usage

tplyr_stats_data(result, layer, statistic)

Arguments

result

A data.frame produced by tplyr_build()

layer

Integer layer index (1-based)

statistic

Character string naming the statistic column to extract (e.g., "n", "pct", "mean", "sd")

Value

A data.frame with the grouping columns and the requested statistic. Returns NULL if not available.