Skip to contents

Creating a tidymatrix

tidymatrix()
Create a tidymatrix object
is_tidymatrix()
Check if an object is a tidymatrix
validate_tidymatrix()
Validate a tidymatrix object
print(<tidymatrix>)
Print a tidymatrix object

Activation

Choose which part of the object (rows, columns or matrix) verbs act on.

activate()
Activate different components of a tidymatrix
active()
Get the active component of a tidymatrix
pull_active()
Extract the active component from a tidymatrix

dplyr verbs

filter(<tidymatrix>)
Filter rows or columns of a tidymatrix
select(<tidymatrix>)
Select columns from row or column metadata
mutate(<tidymatrix>)
Mutate the active component of a tidymatrix
arrange(<tidymatrix>)
Arrange the active component of a tidymatrix
rename(<tidymatrix>)
Rename columns in metadata
relocate(<tidymatrix>)
Relocate columns in metadata
pull(<tidymatrix>)
Extract a column from metadata as a vector
slice(<tidymatrix>)
Slice rows or columns by position
slice_head(<tidymatrix>) slice_tail(<tidymatrix>)
Select first or last rows/columns
slice_sample(<tidymatrix>)
Select a random sample of rows/columns
count(<tidymatrix>)
Count observations by group

Grouping and summarising

group_by(<tidymatrix>)
Group a tidymatrix by variables in metadata
group_vars(<grouped_tidymatrix>)
Get grouping variable names
groups(<grouped_tidymatrix>)
Get grouping variables
is_grouped_tidymatrix()
Check if object is a grouped tidymatrix
print(<grouped_tidymatrix>)
Print a grouped tidymatrix
summarize(<grouped_tidymatrix>) summarise(<grouped_tidymatrix>)
Summarize grouped tidymatrix
tally(<grouped_tidymatrix>)
Count observations in groups
ungroup(<grouped_tidymatrix>)
Remove grouping from a grouped tidymatrix
summarize_rows()
Summarize rows
summarize_columns()
Summarize columns

Joins

Matrix operations

matrix-operations
Matrix Operations for tidymatrix
transform_matrix()
Apply a function to the matrix
center()
Center the active dimension of an object
center(<tidymatrix>)
Center rows or columns
scale(<tidymatrix>)
Scale rows or columns
log_transform()
Log transform matrix
clip_values()
Clip matrix values
t(<tidymatrix>)
Transpose a tidymatrix
get_matrix_fn_suggestions()
Get suggestions for matrix aggregation functions

Row- and column-wise statistics

compute_across()
Apply a function across matrix dimensions with metadata access
add_stats()
Add statistics to metadata
compute_ttest()
Convenience wrapper for t-tests
compute_wilcox()
Convenience wrapper for Wilcoxon rank-sum test
compute_anova()
Convenience wrapper for ANOVA
compute_kruskal()
Convenience wrapper for Kruskal-Wallis test
compute_lm()
Convenience wrapper for linear models
compute_lm_simple()
Convenience wrapper for simple linear regression
compute_correlation()
Convenience wrapper for correlation tests

Dimensionality reduction and clustering

compute_prcomp()
Compute PCA on tidymatrix
compute_mds()
Compute MDS on tidymatrix
compute_tsne()
Compute t-SNE on tidymatrix
compute_umap()
Compute UMAP on tidymatrix
compute_hclust()
Compute hierarchical clustering on tidymatrix
compute_kmeans()
Compute k-means clustering on tidymatrix

Stored analyses

analysis-management
Analysis Management for tidymatrix
store_analysis()
Store an analysis object
get_analysis()
Get stored analysis object
list_analyses()
List stored analyses
remove_analysis()
Remove stored analysis
remove_all_analyses()
Remove all stored analyses
check_analyses()
Check analysis validity

Visualization and export

plot_pheatmap()
Create a pheatmap from tidymatrix
to_long()
Convert tidymatrix to long-format data.frame
as_tibble(<tidymatrix>)
Convert tidymatrix metadata to tibble
as.data.frame(<tidymatrix>)
Convert tidymatrix metadata to data.frame

Example data

big5_responses big5_respondents big5_items
Simulated Big Five personality survey
big5_countries
Country information for the Big Five survey

Re-exported functions

reexports as_tibble
Objects exported from other packages