Reflect value returned is factor, not string

From reading the documentation, I expected a character string, not a factor.
Correct the example

The example must have been made when `abbr` defaulted to `FALSE`
Complete the output to further reflect factors

When you run the code, the factor information is output as well. Adding that in to continue the clarity of what is output by the function.
[Fix #272] Update examples for `hms`, `hm` and `ms` for new printing style
Remove match.call() access to as.period() unit argument
Merge pull request #282 from juba/fix_unit

Remove match.call() access to as.period() unit argument
Use `missing` instead of `as.null` in `as.period.Interval` method
Add .dir-locals.el for Emacs/ESS style compatibility
[Fix #284] Compute periods in as.period.interval without recurring to modulo arithmetic
Optimization in `divide_interval_by_period`
[Fix #276] Perform conversion in `as.period.period` if unit != NULL
[Fix #270] Add check for empty unit names in `standardise_lt_names`
[Fix #269] Fix typo in .parse_xxx_hms
Merge pull request #260 from dougmitarotonda/patch-3

Complete the output to further reflect factors
Merge pull request #258 from dougmitarotonda/patch-1

Reflect value returned is factor, not string
Merge pull request #259 from dougmitarotonda/patch-2

Correct the example
[Fix #237] Declare explicit %m+-$ method for e2="ANY"
Muffle warning in parse tests.
[Fix #262] Document that month boundary is the first second of the month.
Typo