f_cor: Calculate the correlation coefficient between two vectors

Description Usage Arguments Examples

View source: R/Functions.R

Description

Calculate the correlation coefficient between two vectors

Usage

1
f_cor(da, method = "spearman")

Arguments

da

The input is a vector, which is combination of c(x,y)

method

One of "pearson", "kendall", or "spearman", can be abbreviated.

Examples

1
2
3
x<-c(1:10);y<-c(1:10)
damerge<-c(x,y)
f_cor(da=damerge,method="spearman")

ln1267/dWaSSI documentation built on Dec. 3, 2019, 4:39 a.m.