| p_cor | R Documentation |
A wrapper function for cor(), with support for piping.
p_cor(data, x, y, ...)
data |
the data |
x |
one of the two variables |
y |
one of the two variables |
... |
additional arguments passed to |
a numeric object
# load the data
data(nhanes)
# get correlation coefficient for systolic and diastolic
nhanes |> p_cor(bpxosy1,bpxodi1,use='complete.obs')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.