Package: tidymatrix 0.1.0

tidymatrix: Tidyverse-Style Operations on Matrices with Row and Column Metadata

Provides a unified data structure for matrices with associated row and column metadata, enabling 'tidyverse'-style data manipulation. Following the approach of 'tidygraph', users can activate rows, columns, or the matrix itself and operate on it with familiar 'dplyr' verbs, while the matrix and both metadata tables are kept consistent.

Authors:Raivo Kolde [aut, cre]

tidymatrix_0.1.0.tar.gz
tidymatrix_0.1.0.zip(r-4.7-any)tidymatrix_0.1.0.zip(r-4.6-any)tidymatrix_0.1.0.zip(r-4.5-any)
tidymatrix_0.1.0.tgz(r-4.6-any)tidymatrix_0.1.0.tgz(r-4.5-any)
tidymatrix_0.1.0.tar.gz(r-4.7-any)tidymatrix_0.1.0.tar.gz(r-4.6-any)
tidymatrix_0.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
tidymatrix/json (API)

# Install 'tidymatrix' in R:
install.packages('tidymatrix', repos = c('https://raivokolde.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/raivokolde/tidymatrix/issues

Pkgdown/docs site:https://raivokolde.github.io

Datasets:

On CRAN:

Conda:

5.20 score 1 stars 17 downloads 32 exports 15 dependencies

Last updated from:250749d668. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK159
source / vignettesOK198
linux-releaseOK150
macos-releaseOK156
macos-oldrelOK179
windows-develOK117
windows-releaseOK114
windows-oldrelOK102
wasm-releaseOK103

Exports:activateactiveadd_statsas_tibblecentercheck_analysesclip_valuescompute_acrosscompute_anovacompute_correlationcompute_hclustcompute_kmeanscompute_kruskalcompute_lmcompute_lm_simplecompute_mdscompute_prcompcompute_tsnecompute_ttestcompute_umapcompute_wilcoxget_analysisis_grouped_tidymatrixis_tidymatrixlist_analyseslog_transformplot_pheatmappull_activeremove_analysistidymatrixto_longtransform_matrix

Dependencies:clidplyrgenericsgluelifecyclemagrittrpillarpkgconfigR6rlangtibbletidyselectutf8vctrswithr

MDS, t-SNE and UMAP
Creating Example Data | Classical Multidimensional Scaling (MDS) | Accessing Stored MDS Object | t-SNE (t-distributed Stochastic Neighbor Embedding) | t-SNE Parameters | UMAP (Uniform Manifold Approximation and Projection) | UMAP Parameters | Comparing Methods | Gene-Level Dimensionality Reduction | Multiple Dimensions | Using with to_long() | Summary

Last update: 2026-09-28
Started: 2026-01-06

Getting started with tidymatrix
The example data | Working with rows and columns | Joins | Matrix operations | PCA, clustering and MDS | Statistics for every row or column | Plotting and exporting | Where next

Last update: 2026-09-28
Started: 2026-01-06

Joins
Mutating joins on rows | Left join: add columns, keep every respondent | Inner join: keep only respondents with a match | Right and full joins: new rows get NA in the matrix | Filtering joins | Joins on columns | Joining on differently named keys | Duplicate keys | Joins and stored analyses | See also

Last update: 2026-09-28
Started: 2026-01-06

Matrix operations
Summary statistics into metadata | Custom transformations with transform_matrix() | Reverse-scoring items | Whole-matrix transformations | Column- and row-wise transformations | Centering and scaling | Standardising items | Removing response style | Clipping | Log transformation | Transposing | Getting the matrix out | Matrix operations and stored analyses | See also

Last update: 2026-09-28
Started: 2026-01-06

PCA and clustering
Data | PCA | Which way? | PCA on respondents | PCA on items | Hierarchical clustering | Clustering items | Clustering respondents | k-means | Profiling clusters | Comparing clusterings | Managing stored analyses | When stored analyses are dropped | See also

Last update: 2026-09-28
Started: 2026-01-06

Plotting and exporting
Data | Plotting metadata | PCA of respondents | PCA of items | Relationships between metadata variables | Test results | Plotting individual values with to_long() | Heatmaps | Respondents × items | Aggregated heatmap | Exporting | The matrix | The metadata | Everything at once | See also

Last update: 2026-09-28
Started: 2026-01-06

Row- and column-wise statistics
Data | Comparing two groups | t-test | Wilcoxon test | Continuous variables | Correlation | Simple regression | Multiple regression | More than two groups | Your own function: compute_across() | Row-wise statistics | Storing results in the metadata | See also

Last update: 2026-09-28
Started: 2026-01-06

Working with rows and columns
Activation | Filtering | Adding and changing metadata | Selecting, renaming and relocating metadata columns | Reordering | Slicing | Grouping and summarising | Summarising columns: one score per trait | Summarising rows: group profiles | Other aggregation functions | Counting | Putting it together | A note on stored analyses

Last update: 2026-09-28
Started: 2026-09-28

Readme and manuals

Help Manual

Help pageTopics
Activate different components of a tidymatrixactivate
Get the active component of a tidymatrixactive
Add statistics to metadataadd_stats
Analysis Management for tidymatrixanalysis-management
Arrange the active component of a tidymatrixarrange.tidymatrix
Convert tidymatrix metadata to tibbleas_tibble.tidymatrix
Convert tidymatrix metadata to data.frameas.data.frame.tidymatrix
Simulated Big Five personality surveybig5 big5_items big5_respondents big5_responses
Country information for the Big Five surveybig5_countries
Center the active dimension of an objectcenter
Center rows or columnscenter.tidymatrix
Check analysis validitycheck_analyses
Clip matrix valuesclip_values
Apply a function across matrix dimensions with metadata accesscompute_across
Convenience wrapper for ANOVAcompute_anova
Convenience wrapper for correlation testscompute_correlation
Compute hierarchical clustering on tidymatrixcompute_hclust
Compute k-means clustering on tidymatrixcompute_kmeans
Convenience wrapper for Kruskal-Wallis testcompute_kruskal
Convenience wrapper for linear modelscompute_lm
Convenience wrapper for simple linear regressioncompute_lm_simple
Compute MDS on tidymatrixcompute_mds
Compute PCA on tidymatrixcompute_prcomp
Compute t-SNE on tidymatrixcompute_tsne
Convenience wrapper for t-testscompute_ttest
Compute UMAP on tidymatrixcompute_umap
Convenience wrapper for Wilcoxon rank-sum testcompute_wilcox
Count observations by groupcount.tidymatrix
Filter rows or columns of a tidymatrixfilter.tidymatrix
Get stored analysis objectget_analysis
Group a tidymatrix by variables in metadatagroup_by.tidymatrix
Get grouping variable namesgroup_vars.grouped_tidymatrix
Get grouping variablesgroups.grouped_tidymatrix
Check if object is a grouped tidymatrixis_grouped_tidymatrix
Check if an object is a tidymatrixis_tidymatrix
Join tidymatrix with another data frameanti_join.tidymatrix full_join.tidymatrix inner_join.tidymatrix joins left_join.tidymatrix right_join.tidymatrix semi_join.tidymatrix
List stored analyseslist_analyses
Log transform matrixlog_transform
Matrix Operations for tidymatrixmatrix-operations
Mutate the active component of a tidymatrixmutate.tidymatrix
Create a pheatmap from tidymatrixplot_pheatmap
Print a grouped tidymatrixprint.grouped_tidymatrix
Print a tidymatrix objectprint.tidymatrix
Extract the active component from a tidymatrixpull_active
Extract a column from metadata as a vectorpull.tidymatrix
Relocate columns in metadatarelocate.tidymatrix
Remove stored analysisremove_analysis
Rename columns in metadatarename.tidymatrix
Scale rows or columnsscale.tidymatrix
Select columns from row or column metadataselect.tidymatrix
Select first or last rows/columnsslice_head.tidymatrix slice_tail.tidymatrix
Select a random sample of rows/columnsslice_sample.tidymatrix
Slice rows or columns by positionslice.tidymatrix
Summarize grouped tidymatrixsummarise.grouped_tidymatrix summarize.grouped_tidymatrix
Transpose a tidymatrixt.tidymatrix
Count observations in groupstally.grouped_tidymatrix
Create a tidymatrix objecttidymatrix
Convert tidymatrix to long-format data.frameto_long
Apply a function to the matrixtransform_matrix
Remove grouping from a grouped tidymatrixungroup.grouped_tidymatrix