get_type: Get the type of variables.

Description Usage Arguments Value Examples

View source: R/hmi_smallfunctions.R

Description

Function checks of which type a variable is. The types are listed below (together with a rough summary of the classification mechanism).

Usage

1
get_type(variable, spike = NULL, rounding_degrees = c(1, 10, 100, 1000))

Arguments

variable

A variable (vector) from your data set.

spike

A numeric value, denoting the presumed spike of semi-continuous variables.

rounding_degrees

A numeric vector with the presumed rounding degrees. If the rounding_degrees are set to be NULL, the proposed rounding degrees from the function suggest_rounding_degrees are used.

Value

A character denoting the type of variable.

Examples

1
get_type(iris$Sepal.Length); get_type(iris$Species)

hmi documentation built on Oct. 23, 2020, 7:31 p.m.