checkingvariables: Cleaning checks

View source: R/cleaning_check.R

checkingvariablesR Documentation

Cleaning checks

Description

Function showing a summary of the variable and the number of missings for data cleaning

Usage

checkingvariables(data, variable, tosplitby, makefactor = NA)

Arguments

data

The data to use. Not in quotes

variable

The variable to use.formatted as data$variable - in quotes

tosplitby

The variable to split the missings by - in quotes

makefactor

if not NA, makes variable is turned to factor

Value

If the variable is a character or factor, the number of non-missing levels and

  • if there's less than 200 levels - the levels and how many rows in each

  • if there's more than 200 levels - the proportion of levels that are unique. If the variables is numeric returns a summary The number of missing variables broken down by 'tosplitby'


SCIFoundation/sciCoverageR documentation built on Oct. 31, 2024, 11:45 p.m.