check_format_df: Function to check a data frame.

View source: R/check_format_df.R

check_format_dfR Documentation

Function to check a data frame.

Description

What is checked:

  • The format of the table: data.table, data.frame or tibble?

  • The names of the columns needed: only letters, integers or "_"

  • The format of the columns: contains only factors and numeric columns

  • Missing data per column

  • Other strange values: "NaN", "NA", or +/- Inf

Usage

check_format_df(data, digits = 6)

Arguments

data

Dataframe containing the dataset to check

digits

integer, number of digits we will round the numerical variables. Default is 6

Details

And a summary is created on all variables

Value

string "Check completed".

Examples

check_format_df(iris)

bronnimannj/jbutilities documentation built on July 2, 2023, 4:09 p.m.