cor2: cor2: Compute correlations of columns of a dataframe of mixed...

Description Usage Arguments Details Value Examples

Description

Compute correlations of columns of a dataframe of mixed types. The dataframe is allowed to have columns of these four classes: integer, numeric, factor and character. The character column is considered as categorical variable.

Usage

1
cor2(df, nproc = 1)

Arguments

df

input data frame

nproc

Number of parallel processes to use

Details

The correlation is computed as follows:

Pairwise complete observations are used to compute correlation. For a comprehensive implementation, use 'polycor::hetcor'

Value

A simil/dist object.

Examples

1
2
iris_cor <- cor2(iris)
iris_cor <- cor2(iris)

talegari/sidekicks documentation built on May 30, 2019, 8:40 a.m.