# NOT RUN {
# assign two variables
v1 = c(11, 15, 19, 43, 53, -4, 34, 8, 33, -1, 54 )
v2 = c(4, -2, 23, 13, 32, 16, 3, 29, 37, -4, 65 )
corr_neat(v1, v2) # prints statistics
# one-sided, and omitting the "95% CI" part
corr_neat(v1, v2, direction = 'pos', for_table = TRUE)
# print statistics and assign main results
results = corr_neat(v1, v2, direction = 'pos')
results['p'] # get precise p value
# }
Run the code above in your browser using DataLab