Skip to contents

This function takes a data frame and creates a nested data frame by grouping on the columns nSamp, iter, and method. It then calculates summary statistics for each nested data frame using the stats_summary function.

Usage

stats_nested(data, metrics = NULL, cores = NULL, .f = NULL)

Arguments

data

A data frame containing the data to be summarized

metrics

A vector of metric names to be summarized. If NULL, all numeric columns will be summarized.

cores

Number of cores to use for parallel computation

.f

Single parameter statistical function to be applied

Value

A tibble containing the nested data frames and their corresponding summary statistics.