easystats / easystats/datawizard

new feature: data_apply()

Open
#351 13 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Feature idea :fire:
Dominant language
R
Stars
238
Forks
18
Avg merge
1d 15h
Merged PRs (30d)
4

Description

Would be nice to have a small wrapper for sapply() to run on dataframes to do things like:

mtcars |>
  data_apply(as.factor, exclude="mpg")

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the existing dataframe transformation entry points and tests, then compare the requested data_apply() behavior with R's sapply(). Check how the mtcars example should handle exclude="mpg"; done means a dataframe wrapper applies the function to the intended columns while leaving excluded columns unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
data
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.