Skip to content

Clean baseFillUp.R#4

Open
hsonne wants to merge 2 commits intodevfrom
clean
Open

Clean baseFillUp.R#4
hsonne wants to merge 2 commits intodevfrom
clean

Conversation

@hsonne
Copy link
Member

@hsonne hsonne commented Jun 11, 2022

  • replace ## with #
  • use kwb.utils::selectColumns()
  • use df[[j]][i] instead of df[i, j]. It should
    be much faster
  • use kwb.utils::inRange()
  • return early
  • use lapply() and do.call(rbind, ...)
  • simplify names
    • numberOfNoStepMultiple -> n
    • colNumbers -> j
  • use drop = FALSE

This change is Reviewable

hsonne added 2 commits June 11, 2022 03:29
- replace ## with #
- use kwb.utils::selectColumns()
- use df[[j]][i] instead of df[i, j]. It should
  be much faster
- use kwb.utils::inRange()
- return early
- use lapply() and do.call(rbind, ...)
- simplify names
  - numberOfNoStepMultiple -> n
  - colNumbers -> j
- use drop = FALSE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant