epiverse-trace / epiverse-trace/numberize

Use "native" vectorisation

Open
#11 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
R
Stars
4
Forks
3
PR merge metrics
No merged PRs in 30d

Description

Opening this issue as a reminder of the discussion started in https://github.com/epiverse-trace/numberize/pull/6#discussion_r1532548560.

Most R functions are vectorized by default (using loops in C) so it may be much more efficient to rely on this rather than a `vapply()` loop.

Contributor guide

Open the contributing guide

Research direction

Start with the discussion linked from PR #6, then locate the vapply() loop or loops in the package that it discusses. Compare the current approach with R's native vectorized functions and determine whether the behavior and performance remain correct after the refactor.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
performance
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.