append_design_matrix: Prepare the data matrix by appending a column of 1's top it

Description Usage Arguments Examples

View source: R/LinearRegression.R

Description

Prepare the data matrix by appending a column of 1's top it

Usage

1

Arguments

df

Data frame, minus the response

Examples

1
2
3
4
5
append_design_matrix(matrix(c(1,2,3,4,5,6), nr=2, byrow=TRUE))

df<-iris
df<-df[,2:dim(df)[2]] # remove first column, using it as the response vector
append_design_matrix(df)

MalachiTimothyPhillips/ggfast documentation built on May 18, 2019, 11:27 p.m.