Skip to content

prepdat

1.0.8Package record

Preparing Experimental Data for Statistical Analysis

0packages depend
2.5Kdownloads / year
41.7%test coverage
13/13flavors OK

Overview

About

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.

Changes in 1.0.8
  • file_merge() improved:
  • Search of files to be merged is now recursive using folder_path argument.
  • Added raw_file_name and raw_file_extension arguemnts 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_path argument) and the saved merged table (dir_save_table argument).
  • arguments has_header and new_header added to handle headers.
  • Informative error messages were added.
  • prep() improved:
  • file_path and results_path arguemnts 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_stroopdata data frame added:
  • This is the finalized table prep() outputs for the example in prep().
  • Documentation improved.
  • Updated NAMESPACE file according to devtools::check(document = FALSE) suggestion.
  • Version number updated.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 1.5 min · r-devel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 1.0.8
READMEYes · 804 wordsVignettesNoNEWSYes · 100% structured · mentions 1.0.8Citation fileNoWebsitenot declared in DESCRIPTION
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

2.5K
CRAN downloads in the past year
Rank #19,713 · ~7/day · ~212/mo
Daily download trend is not available in this view yet.
22730 days
67490 days
2.5K1 year
Compare downloads with other packages →
Also on66 r2u5 autocran

Repository

16Stars
2Forks
0Open issues
0Open PRs
0Releases
127Commits
2Commit identities
License file reads as GPL-3.0 · 127 commits · Last activity 2019-03-01
Responsiveness
How these are sampled
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

2025-06-25 · 162026-07-07 · 16
PracticesBeta

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.

CRAN release process (1)
cran-comments.md
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
5 external dependencies (excludes base and recommended)

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.

Depends (1)
R >= 3.0.3
LinkingTo (0)
none
Suggests (2)
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (4)
Author, Maintainer since 1.0.2 (2015)
Author
Contributor · added in 1.0.6
Contributor
Listed in earlier versions (1)
no longer listed · 1.0.2 to 1.0.5
Releases (7)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • R
    R 4.0.0 released · 2020-04-24
  • R
    R 3.6.0 released · 2019-04-26
  • R
    R 3.5.0 released · 2018-04-23
  • R
    R 3.4.0 released · 2017-04-21
  • 1.0.8Latest
    record
    2016-09-23 · current release · diff ↗
  • R
    R 3.3.0 released · 2016-05-03
  • 1.0.7
    record
    2016-03-02 · diff ↗
  • 1.0.6
    record
    2016-02-28 · diff ↗
  • 1.0.5
    record
    2015-12-14 · diff ↗
  • 1.0.4
    record
    2015-11-22 · diff ↗
Show 3 earlier eventsHide 3 earlier events
  • 1.0.3
    record
    2015-10-22 · diff ↗ ·
    added 5 exports
    read_data, file_merge, non_recursive_mc, modified_recursive_mc, hybrid_recursive_mc
  • 1.0.2
    record
    2015-09-01
  • R
    R 3.2.0 released · 2015-04-16

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")
Allon, A. S., Grange, J., Luria, R., & Meiran, N. (2016). prepdat: Preparing Experimental Data for Statistical Analysis (Version 1.0.8) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for prepdat version 1.0.8 [Data set]. HJJB, LLC. Data release v2026-10-24. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy