This is a user-facing helper that casts x to double and then constructs a
weeknumber vector with new_weeknumber().
Usage
weeknumber(x = double())Details
This helper follows the vctrs convention of coercing user input before
calling the low-level constructor. For ISO year/week pairs, strings, or
date-time objects, use make_weeknumber() or as_weeknumber().