hanaml.PearsonrMatrix {hana.ml.r}R Documentation

Computes correlation matrix using Pearsonr

Description

hanaml.PearsonrMatrix is a R wrapper for PAL Multivariate Analysis.

Usage

hanaml.PearsonrMatrix(conn.context, data, cols = NULL)

Arguments

conn.context

ConnectionContext
The connection to the SAP HANA system.

data

DataFrame
DataFrame containing the data.

cols

list of characters, optional
Name of the columns to analyze.
If not given, it defaults to all columns

Details

Computes a correlation matrix using Pearson's correlation coefficient.

Value

Pearsonr.matrix : Dataframe Pearson's correlation coefficient between any two data samples(columns). structured as follows:

Examples

## Not run: 

> df
   X    Y    Z
1  1  2.4  5.1
2  5  3.5  6.2
3  3  8.9  8.3
4 10 -1.4  9.4
5 -4 -3.5 11.5
6 11 32.8 12.6

> output <- hanaml.PearsonrMatrix(conn, data = df)

> output
  ID         X         Y         Z
1  X 1.0000000 0.5927077 0.2119775
2  Y 0.5927077 1.0000000 0.4618840
3  Z 0.2119775 0.4618840 1.0000000


## End(Not run)

[Package hana.ml.r version 1.0.8 Index]