pairwise | R Documentation |
Creates a data structure for every variable pair in a dataset.
pairwise(x, score = NA_character_, pair_type = NA_character_)
## S3 method for class 'matrix'
pairwise(x, score = NA_character_, pair_type = NA_character_)
## S3 method for class 'data.frame'
pairwise(x, score = NA_character_, pair_type = NA_character_)
## S3 method for class 'easycorrelation'
pairwise(x, score = NA_character_, pair_type = NA_character_)
as.pairwise(x, score = NA_character_, pair_type = NA_character_)
x |
A dataframe or symmetric matrix. |
score |
a character string indicating the value of association, either "nn", "fn", "ff". |
pair_type |
a character string specifying the type of variable pair. |
A tbl_df of class pairwise
for pairs of variables with a column value
for the score value,
score
for a type of association value and pair_type
for the type of variable pair.
pairwise(matrix)
: pairwise method
pairwise(data.frame)
: pairwise method
pairwise(easycorrelation)
: pairwise method
as.pairwise()
: Same as pairwise
pairwise(cor(iris[,1:4]), score="pearson")
pairwise(iris)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.