Skip to content

Add sparsity() function to calculate sparsity of object #82

Closed
@EmilHvitfeldt

Description

@EmilHvitfeldt

would most likely be applied to tibble, but having matrix and Matrix support wouldn't hurt

some things to think about:

  • how should be handle non-numeric values the calculation?
  • for sparse columns this becomes easy, but it could be quite slow to implement for longer dense vectors. might have to C it.
  • one way we could speed things up would be a sampling/heading of the data. say 100-1000 observations, calculate he sparsity of that. would be worth it at least as an option

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurea feature request or enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions