Learn R Programming

dlookr (version 0.3.9)

summary.transform: Summarizing transformation information

Description

print and summary method for "transform" class.

Usage

# S3 method for transform
summary(object, ...)

Arguments

object

an object of class "transform", usually, a result of a call to transform().

...

further arguments passed to or from other methods.

Details

summary.transform compares the distribution of data before and after data conversion.

See Also

transform, summary.transform.

Examples

Run this code
# NOT RUN {
# Generate data for the example
carseats <- ISLR::Carseats
carseats[sample(seq(NROW(carseats)), 20), "Income"] <- NA
carseats[sample(seq(NROW(carseats)), 5), "Urban"] <- NA

# Standardization ------------------------------
advertising_minmax <- transform(carseats$Advertising, method = "minmax")
advertising_minmax
summary(advertising_minmax)
plot(advertising_minmax)

# Resolving Skewness  --------------------------
advertising_log <- transform(carseats$Advertising, method = "log")
advertising_log
summary(advertising_log)
plot(advertising_log)
# }

Run the code above in your browser using DataLab