Skip to content

Unable to create named period vectors #1074

@d-morrison

Description

@d-morrison

I'm trying to create a vector of periods with names, but the result is a numeric vector of 0s:

library(lubridate)
#> 
#> Attaching package: 'lubridate'
#> The following objects are masked from 'package:base':
#> 
#>     date, intersect, setdiff, union
test = c(a = hours(1), b = hours(1) + minutes(30))
print(test)
#> a b 
#> 0 0
class(test)
#> [1] "numeric"

Created on 2022-10-11 with reprex v2.0.2

Possibly related to #1072 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behavior

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions