Skip to contents

Converts numeric values representing days into labeled years with one decimal precision.

Usage

label_years(x)

Arguments

x

A numeric vector of durations in days.

Value

A character vector of labeled durations in years.

Examples

label_years(c(365, 730, 1095))
#> [1] "1" "2" "3"