lmdf {beginr}R Documentation

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

Description

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

Usage

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

Arguments

data

a dataframe

simply

logical

intercept

logical

Value

another dataframe

Examples

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


[Package beginr version 0.1.7 Index]