hcorr: hcorr

Description Usage Arguments Examples

View source: R/hcorr.R

Description

This function calculates correlations between variables

Usage

1
hcorr(df, min.pairs = 20, verbose = TRUE, filter.by.p = FALSE)

Arguments

df

name of dataframe to use for correlation, needs to be long format 4 column data frame: geocode, variablename, year, value

min.pairs

minimum number of pairs to correlate

verbose

enable n and p values reporting, TRUE or FALSE

filter.by.p

Do you want to filter for significant p values?

Examples

1
2
3
#need 4 column data frame, geocode, variablename, year, value
library(hammond)
corr = hcorr(hcountryexampledata)

david-hammond/hammond documentation built on Sept. 10, 2021, 5:38 a.m.