R/data.R

#' Raw data for COVID-19 in Mexico
#'
#' @source \url{https://www.gob.mx/salud/documentos/datos-abiertos-152127}
#' @format A dataframe with columns:
#' \describe{
#' \item{fecha_actualizacion}{date of update}
#' \item{id_registro}{unique id for each observation}
#' \item{origen}{if observation comes from USMER system or not}
#' \item{sector}{institution where patient was treated}
#' \item{entidad_um}{state of hospital were the patient was treated}
#' \item{sexo}{gender of the patient}
#' \item{entidad_nac}{state of birth}
#' \item{entidad_res}{state of residence}
#' \item{municipio_res}{town of residence}
#' \item{tipo_paciente}{if patient was hospitalized or not}
#' \item{fecha_ingreso}{date of hospitalization}
#' \item{fecha_sintomas}{date of first symptom}
#' \item{fecha_def}{date of death, if ocurred}
#' \item{intubado}{if intubation was needed}
#' \item{neumonia}{if patient presented pneumonia}
#' \item{edad}{age}
#' \item{nacionalidad}{if patient is mexican or not}
#' \item{embarazo}{if patient was pregnant}
#' \item{habla_langua_indig}{if patient speaks native language}
#' \item{indigena}{if patient identifies as part of and indigenous group}
#' \item{diabetes}{if patient has diabetes}
#' \item{epoc}{if patient had COPD}
#' \item{asma}{if patient has asthma}
#' \item{inmusupr}{if patient has immunosuppression}
#' \item{hipertension}{if patient has hipertension}
#' \item{otra_com}{if patient has other co-morbidities}
#' \item{cardiovascular}{if patient has cardiovascular diseases}
#' \item{obesidad}{if patient has obesity}
#' \item{renal_cronica}{if patient has chronic kidney disease}
#' \item{tabaquismo}{if patient is a smoker}
#' \item{otro_caso}{if patient has contact with a covid positive}
#' \item{toma_muestra}{identifies if trial was taken}
#' \item{resultado_lab}{Identifies result from laboratory}
#' \item{clasificacion_final}{Identifies if patient is covid-19 positive according to recent catalogue}
#' \item{migrante}{if patient is migrant}
#' \item{pais_nacionalidad}{nacionality}
#' \item{pais_origen}{country the patient came from}
#' \item{uci}{if patient required intensive care}
#' }
#' @examples
#' \dontrun{
#'  covidmx
#' }
"covidmx"


#' Dictionaries to recode covid_raw data
#' @source \url{https://www.gob.mx/salud/documentos/datos-abiertos-152127}
#' @format A list with the following data frames:
#' \describe{
#' \item{entidad}{dataframe with values and description for states variables}
#' \item{municipios}{dataframe with values and description for towns}
#' \item{nacionalidad}{dataframe with values and descripttion for nationality variables}
#' \item{origen}{dataframe with values and description for origen variable}
#' \item{paciente}{dataframe with values and description for tipo_paciente variable}
#' \item{sector}{dataframe with values and description for sector variable}
#' \item{sexo}{dataframe with values and description for sexo(gender) variable}
#' \item{sino}{dataframe with values and description for binary (yes/no) variables}
#' \item{resultado_lab}{dataframe with values and description for resultado_lab variable}
#' \item{clasificacion}{dataframe with values and description for clasificacion_final variable}
#' }
#' @examples
#' \dontrun{
#'  diccionarios$entidad
#'
#'  diccionarios$origen
#'
#'  diccionarios$resultado
#' }
"diccionarios"
alberto-mateos-mo/datoscovid19mx documentation built on Oct. 28, 2020, 4:47 a.m.