Skip to content

fread for complex input #4466

@MichaelChirico

Description

@MichaelChirico

Follow-up to #3690 and #4464.

Originally I said it would take significant effort but #4464 would make adding a parser for complex straightforward -- parse_double_regular_core followed by + or -, then parse_double_regular_core followed by i. The only complication is about storage -- fread.c returns a struct and freadR.c applies Rcomplex?

It also raises a question of efficiency -- how much of an impact does it have to add auto-detect types? Since plain numeric and complex columns look identical for 10-15 characters (maybe), it could be inefficient to offer this "lookalike" parser. OTOH it's only applied to a small sample of rows.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions