R/T2D.R

#' @title A data for 20 diabetes patients
#'
#' @description A data for 20 diabetes patients. The data were fabricated.
#'
#' @docType data
#' @keywords  datasets
#' @name T2D
#' @usage T2D
#' @format A data.frame contains 20 obs of 8 variables. The variables are:
#' \describe{
#'   \item{ID}{The ID of these 20 people.}
#'   \item{gender}{A character ("F" and "M").}
#'   \item{age}{A numeric.}
#'   \item{education}{A ordered factor ("1"<"2"<"3"<"4").}
#'   \item{marriage}{A logical.}
#'   \item{smoke}{A factor (0: "never smoker", 1: "current smoker", 2: "ex-smoker").}
#'   \item{glucose}{A numeric.}
#'   \item{diabetes}{A factor (0: "normal people", 1: "patient").}
#' }
NULL

Try the EasyDescribe package in your browser

Any scripts or data that you put into this service are public.

EasyDescribe documentation built on April 16, 2023, 9:19 a.m.