Skip to content

wrong example in man / hms.Rd #272

@stepds

Description

@stepds

This example in man/hms.Rd

x <- c("09:10:01", "09:10:02", "09:10:03", "Collided at 9:20:04 pm")
hms(x)
# [1] 9 hours, 10 minutes and 1 second
# [2] 9 hours, 10 minutes and 2 seconds
# [3] 9 hours, 10 minutes and 3 seconds

lacks the last output line. AND if you run the example you will get "9 hours, 20 minutes and 4 seconds" for the missing element. However, the example is quite MISLEADING, due to the presence of "pm" in the last element. One would think that hms() should return "21 hours..." for that element instead of "9 hours..."

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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