inspect_smap {cleandata}R Documentation

Simply Classify The Columns of A Data Frame

Description

A simplified thus faster version of inspect_map.

Usage

inspect_smap(x, message = TRUE)

Arguments

x

The data frame

message

Whether print the process.

Value

A list of factor_cols (vector), num_cols (vector), char_cols (vector), ordered_cols (vector), and other_cols (vector).

factor_cols

a vector, in which are the names of the factorial columns.

num_cols

a vector, in which are the names of the numerical columns.

char_cols

a vector, in which are the names of the string columns.

ordered_cols

a vector, in which are the names of the ordered factorial columns.

other_cols

a vector, in which are the names of the other columns.

See Also

inspect_map

Examples

# building a data frame
A <- as.factor(c('x', 'y', 'z'))
B <- as.ordered(c('z', 'x', 'y'))
C <- as.factor(c('y', 'z', 'x'))
D <- as.factor(c('i', 'j', 'k'))
E <- 5:7
df <- data.frame(A, B, C, D, E)

# inspection
dmap <- inspect_smap(df)
summary(dmap)
print(dmap)

[Package cleandata version 0.3.0 Index]