variable_classes2: Obtain classes with names

View source: R/variable-classes.R

variable_classes2R Documentation

Obtain classes with names

Description

Get information about the inputs variable names and classes.

Usage

variable_classes2(data, simplify = TRUE)

Arguments

data

A data.frame or a list.

simplify

Logical. If set to TRUE the return value is turned into a character vector.

Value

A named character vector.

  • Vector-elements: The class of every variable of data.

  • Vector-names: The name of every variable of data.

Examples

variable_classes2(data = mtcars)


kueckelj/confuns documentation built on July 4, 2024, 4:53 p.m.