Skip to content

Add invalid_remove() #229

@DavisVaughan

Description

@DavisVaughan

Just x[!invalid_detect(x)], but it would be nice in a pipe based workflow. Could have used it here https://twitter.com/dvaughan32/status/1388463791596265473?s=20

year_month_weekday(grid$year, grid$month, grid$day, grid$index) %>%
  invalid_remove() %>%
  as.Date() %>%
  sort()

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurea feature request or enhancement

    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