bivar.awk: Summary statistics from two variables

View source: R/bivar_awk.R

bivar.awkR Documentation

Summary statistics from two variables

Description

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.

Usage

bivar.awk(x)

Arguments

x

A dataframe with two columns (variables).

Value

Returns an summary statistics for two variables.

Examples

# 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)


cbiagii/ceTF documentation built on Feb. 6, 2023, 9:05 p.m.