This function cleans a RSA-911 year variable containing a 4-digit year to the extracted 4-digit year.

handle_year(x)

Arguments

x

A year variable, containing a 4-digit year somewhere in string.

Value

The converted year variable, just the digits.