| bivar.awk | R Documentation |
Read two columns of data values (say X and Y) and computes summary statistics including N, Mean, SD, Min and Max for X and Y, as well as the correlation between X and Y and the regression of Y on X.
bivar.awk(x)
x |
A dataframe with two columns (variables). |
Returns an summary statistics for two variables.
# creating a random dataframe with two columns (variables)
tab <- data.frame(a = sample(1:1000, 100, replace=TRUE),
b = sample(1:1000, 100, replace=TRUE))
# running bivar.awk function
bivar.awk(tab)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.