raw_dataset: Build a raw dataset from averaged data

View source: R/functions.R

raw_datasetR Documentation

Build a raw dataset from averaged data

Description

Generates a raw (non-averaged) dataset by sampling individual observations from the mean and standard deviation values provided in an averaged input data frame. For each source, it generates 'n' observations for each tracer by sampling from a normal distribution using the provided mean and standard deviation. Mixture data is appended directly without sampling.

Usage

raw_dataset(data)

Arguments

data

A data frame containing averaged source and mixture data. It is expected to have columns for tracer means (prefixed with "mean_"), standard deviations (prefixed with "sd_"), and a column "n" indicating the number of observations for each source.

Value

A data frame representing the raw, non-averaged dataset, with each row corresponding to an individual observation.


fingerPro documentation built on Aug. 27, 2025, 5:11 p.m.