dftype: Explore the type of data frame variables and columns.

Description Usage Arguments Value Examples

View source: R/dftype.R

Description

Create a new data frame which contains the type of columns and variables for the input data frame. Furthermore, if there are non-numeric columns, it will return the unique values of non-numeric columns and their length.

Usage

1

Arguments

df

Data Frame

Value

summary Vector

unique_df Data Frame

Examples

1
2
3
4
5
6
7
df <- data.frame(type = (c("Air", "Ship", "Bus", "Air")),
time= c(6, 32, 31, 5),
origin= c("US", "Mexico", "CANADA", "UK"))

results <- dftype(df)
results$summary
results$unique_df

UBC-MDS/Rmleda documentation built on March 29, 2021, 7:04 a.m.