Learn R Programming

avfintools (version 0.1.0)

findcor: Calculate the correlation between a column shared within two dataframes.

Description

Two dataframes from one of the "get" functions recommended, but works with any dataframe that shares columns as well as column lengths.

Usage

findcor(a, b, sdata)

Value

The correlation as a single numeric.

Arguments

a

First dataframe

b

Second dataframe

sdata

A string of the column name to compare

Examples

Run this code
findcor(SPYdaily, GMEdaily, "returns")

Run the code above in your browser using DataLab