Skip to content

first and last fail for factors #2029

@tmalsburg

Description

@tmalsburg
> first((1:3)[integer(0)])
[1] NA
> first(factor(1:3)[integer(0)])
Error: Don't know how to generate default for object of class factor

I would expect to get an NA for factors, too. Same problem for last.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions