lmdf: calculate linear regression between every two columns in a...

Description Usage Arguments Value Examples

View source: R/beginr.R

Description

calculate linear regression between every two columns in a data frame. in: a dataframes. out: a dataframe showing the linear regression.

Usage

1
lmdf(data, simply = FALSE, intercept = TRUE)

Arguments

data

a dataframe

simply

logical

intercept

logical

Value

another dataframe

Examples

1
2
df <- data.frame(a = 1:10, b = 1:10 + rnorm(10), c = 1:10 + rnorm(10))
lmdf(df)

pzhaonet/beginr documentation built on March 27, 2021, 1:20 p.m.