categorize_response_variable: Categorize continuous response variable columns.

Description Usage Arguments Value

View source: R/sample_data_functions.r

Description

This function is a wrapper for 'categorize()', which place continuous values into classes and return factor columns. To add columns which are already factor columns as response variables use 'cbind()' or 'merge()' after this step.

Usage

1
categorize_response_variable(ML_mode, response_data, ...)

Arguments

ML_mode

How many classes should be generated? 'classification' or 'regression' are valid, 'regression' returns unmodified response_data

response_data

a data frame where the columns are the continuous response variables

...

arguments passed on to 'categorize()'

Value

A data frame with factor columns containing the categorized response variables or for 'regression' the unmodified data frame


RJ333/phyloseq2ML documentation built on June 2, 2020, 9:25 p.m.