Preparing Experimental Data for Statistical Analysis
Overview
Prepares data for statistical analysis (e.g., analysis of variance ;ANOVA) by enabling the user to easily and quickly merge (using the file_merge() function) raw data files into one merged table and then aggregate the merged table (using the prep() function) into a finalized table while keeping track and summarizing every step of the preparation. The finalized table contains several possibilities for dependent measures of the dependent variable. Most suitable when measuring variables in an interval or ratio scale (e.g., reaction-times) and/or discrete values such as accuracy. Main functions included are file_merge() and prep(). The file_merge() function vertically merges individual data files (in a long format) in which each line is a single observation to one single dataset. The prep() function aggregates the single dataset according to any combination of grouping variables (i.e., between-subjects and within-subjects independent variables, respectively), and returns a data frame with a number of dependent measures for further analysis for each cell according to the combination of provided grouping variables. Dependent measures for each cell include among others means before and after rejecting all values according to a flexible standard deviation criteria, number of rejected values according to the flexible standard deviation criteria, proportions of rejected values according to the flexible standard deviation criteria, number of values before rejection, means after rejecting values according to procedures described in Van Selst & Jolicoeur (1994; suitable when measuring reaction-times), standard deviations, medians, means according to any percentile (e.g., 0.05, 0.25, 0.75, 0.95) and harmonic means. The data frame prep() returns can also be exported as a txt file to be used for statistical analysis in other statistical programs.
file_merge()improved:- Search of files to be merged is now recursive using
folder_pathargument. - Added
raw_file_nameandraw_file_extensionarguemnts to enable recursive file search. - The function does not change the working directory.
- User provides independent paths for location of files to be merged (
folder_pathargument) and the saved merged table (dir_save_tableargument). - arguments
has_headerandnew_headeradded to handle headers. - Informative error messages were added.
prep()improved:file_pathandresults_patharguemnts added to make file input location and file output location independent.- Informative error messages were added.
- file output can be saved also in csv format.
- Test unit was added using
testthat
Show all changes in 1.0.8Hide the rest of the changes in 1.0.8
finalized_stroopdatadata frame added:- This is the finalized table
prep()outputs for the example inprep(). - Documentation improved.
- Updated
NAMESPACEfile according todevtools::check(document = FALSE)suggestion. - Version number updated.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- Help pages
- 8
- Examples that run
- 100%3 run in a plain check
- Exported functions with examples
- 17%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 63%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- 1
- Median days to close, 50 most recently updated closed PRs
- 1
Stars over time
Forks over time
Issues over time
PRs over time
2 development-tooling and community-health practices detected across 2 families in the upstream repository
Checks run against github.com/ayalaallon/prepdat on 2026-10-22.
Dependencies
Installing prepdat adds 23 packages (14 with compiled code, 21 MB of source tarballs). Heaviest: stringi 11 MB, Rcpp 1.8 MB, GPArotation 1.6 MB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- RR 3.6.0 released · 2019-04-26
- RR 3.5.0 released · 2018-04-23
- RR 3.4.0 released · 2017-04-21
- 1.0.8Latest
- RR 3.3.0 released · 2016-05-03
- 1.0.72016-03-02 · diff ↗
- 1.0.62016-02-28 · diff ↗
- 1.0.52015-12-14 · diff ↗
- 1.0.42015-11-22 · diff ↗
Package metadata
- First published
- 2015-09-01
- Total releases
- 7 / 11 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 3.0.3
- Bundled data
- 13 KB / 2 files
- Download size
- 47 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("prepdat")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.