identify_variables: identify_variables

Description Usage Arguments Value Author(s) See Also Examples

Description

identifies the type of variables in a data.frame

Usage

1

Arguments

data

a data.frame to examine

Value

a tibble containing the following components:

name

the name of the column

class

the class of the column

type

the type (categorical/continuous) of the column

Author(s)

Mark Newman, mark@trinetteandmark.com

See Also

Other utilities: adjust_grid_for_regression, apply_lag, force_categorical

Examples

1
2
3
4
5
6
7
  
  data.frame(
    a = 1:10,
    b = rep("a", 10),
    c = rep("b", 10) %>% factor(),
    stringsAsFactors = FALSE) %>%
    identify_variables()

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