prep_data: prep_data function

View source: R/prep_data.R

prep_dataR Documentation

prep_data function

Description

This function helps user to transform and scale quantitative defined data (columns identitified from a given dataset) for better PCA and RDA outputs.

Usage

prep_data(data, quantitative_columns, transform_data_method, scale_data)

Arguments

data

A data frame with at least one numeric column

quantitative_columns

Numeric vector of numeric columns position : c(1,2,4)

transform_data_method

Method of quantitative data transformation : "log", "sqrt4", "clr", "none"

scale_data

TRUE or FALSE. TRUE => scaling of quantitative columns

Value

The transformed/scaled quantitative data frame

Examples


prep_data(mtcars, c(1:7), "log", TRUE)



GABB documentation built on June 8, 2025, 1:46 p.m.