This function returns the list of tags identifying specific variable types in
a linelist
.
Value
The function returns a named list
where names indicate generic
types of data, and values indicate which column they correspond to.
Examples
if (require(outbreaks)) {
## make a linelist
x <- make_linelist(measles_hagelloch_1861, date_onset = "date_of_prodrome")
## check non-null tags
tags(x)
## get a list of all tags, including NULL ones
tags(x, TRUE)
}
#> $id
#> NULL
#>
#> $date_onset
#> [1] "date_of_prodrome"
#>
#> $date_reporting
#> NULL
#>
#> $date_admission
#> NULL
#>
#> $date_discharge
#> NULL
#>
#> $date_outcome
#> NULL
#>
#> $date_death
#> NULL
#>
#> $gender
#> NULL
#>
#> $age
#> NULL
#>
#> $location
#> NULL
#>
#> $occupation
#> NULL
#>
#> $hcw
#> NULL
#>
#> $outcome
#> NULL
#>