Learn R Programming

daltoolbox (version 1.2.747)

adjust_matrix: Adjust to matrix

Description

Coerce an object to matrix if needed (useful before algorithms that expect matrices).

Usage

adjust_matrix(data)

Value

returns an adjusted matrix

Arguments

data

dataset

Examples

Run this code
data(iris)
mat <- adjust_matrix(iris)

Run the code above in your browser using DataLab