Learn R Programming

less (version 0.1.0)

prepareDataset: Prepare a Dataset

Description

Takes X and y datasets and merges them into a dataframe with column names (y, X_1, X_2 ...)

Usage

prepareDataset(X, y)

Value

A named dataframe which consists of X and y combined

Arguments

X

Independent variables

y

Response variables

Examples

Run this code
X <- matrix(1:20, nrow = 4)
y <- c(5:8)
prepareDataset(X, y)

Run the code above in your browser using DataLab