adjust_grid_for_regression: adjust_grid_for_regression.r

Description Usage Arguments Value Author(s) See Also Examples

Description

adjusts a data.frame to be more conducive to dredging. It automatically:

  1. converts character columns into factor columns

  2. applies apply_bcskew0 to numeric and integer columns

  3. applies scale to numeric and integer columns

Usage

1

Arguments

data

a data.frame to operate over

Value

the adjusted data.frame

Author(s)

Mark Newman, mark@trinetteandmark.com

See Also

Other utilities: apply_lag, force_categorical, identify_variables

Examples

1
2
3
4
5
6
7
8
  
  set.seed(0)
  data.frame(
    a = 1:10,
    b = rep("a", 10),
    c = rnorm(10, mean = 4),
    stringsAsFactors = FALSE) %>%
    adjust_grid_for_regression()

markanewman/mndredge documentation built on May 9, 2019, 5:52 a.m.