Learn R Programming

subgroup.discovery (version 0.3.1)

prim.data.prepare: Prepare data for PRIM

Description

Only numerical and factor data is allowed, this function helps prepare the data by converting any columns that are not numerical or factor to factor

Usage

prim.data.prepare(X)

Arguments

X

The data frame to prepare

Value

The same data frame, with only numerical and factor data

Examples

Run this code
# NOT RUN {
  data(credit)
  credit <- prim.data.prepare(credit)
# }

Run the code above in your browser using DataLab