variableTypes: Classify the variables between 5 types: "numeric",...

View source: R/formats.R

variableTypesR Documentation

Classify the variables between 5 types: "numeric", "categorical", "binary", "date", or NA.

Description

Classify the variables between 5 types: "numeric", "categorical", "binary", "date", or NA.

Usage

variableTypes(table)

Arguments

table

Tibble.

Value

Tibble with the variables type and classification.

Examples


library(PatientProfiles)
x <- dplyr::tibble(
  person_id = c(1, 2),
  start_date = as.Date(c("2020-05-02", "2021-11-19")),
  asthma = c(0, 1)
)
variableTypes(x)



PatientProfiles documentation built on Oct. 30, 2024, 9:13 a.m.