knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
This vignette will provide a brief overview of how the package is used.
Let's take an example of two random data frames for which we want to calculate the signal.
library(variant) #data frames to check: df1 <- data.frame(matrix(rnorm(100), ncol = 5)) df2 <- data.frame(matrix(rnorm(1000), ncol = 5))
The first function will check if the data frames are numeric and have an equal number of columns:
df_check(df1, df2)
The cormat function calculates the correlation matrix for the data frames:
cormat(df1)
The fisher_trans function transforms the r values in the correlation matrix to their respective z-scores:
data.frame(lapply(cormat(df1), fisher_trans))
The variant signal will calculate the change on columns whose confidence interval of mean coeff of corr change vs overall change in data frames at a given level of significance.
variant_signal(df1, df2, 0.2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.