This function calculates the Spearman-Brown reliability for a two-item scale, which is the recommended measure for two-item scales (rather than Cronbach's alpha, which is used for longer scales.)
spearman_brown(data, items, name = "", SB_only = FALSE)
https://www.r-bloggers.com/five-ways-to-calculate-internal-consistency/
A dataframe
Character vector of length 2, with names of the two items
Name of the scale, relevant only if data.frame is returned
Logical, indicating whether to return only the reliability as a number or a dataframe that also includes the scale name and correlation.
Either the Spearman-Brown coefficient as a single number, or a dataframe including the Pearson correlation coefficient and the scale name