View source: R/find_similar_clms.R
find_similar_clms | R Documentation |
Takes this_clms
and compares it to all other columns of my_df
using stats::cor.test
. If the absolute value of that row is greater than acceptable_similarity
, then the either a boolean is returned true or the similar columns are returned.
find_similar_clms(
this_clm,
my_df,
test_clms = NULL,
acceptable_similarity = 0.9,
return_boolean = T,
my_key = get_default_sample_key(),
corr_method = "spearman"
)
this_clm |
string to specify column that will be compared to the others |
my_df |
|
test_clms |
character vector of columns to test. If left blank all, but |
acceptable_similarity |
number to indicate the max absolute rho value that will be allowed with other columns. |
return_boolean |
boolean to specify if a boolean is returned or the |
my_key |
string to specify key column of the |
corr_method |
string to specify the test used for the correlation. Passed to |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ find_similar_clms ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.