easystats / easystats/parameters

data attribute in principal_component

Open
#350 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Consistency :green_apple: :apple: Low priority :sleeping:
Dominant language
R
Stars
499
Forks
45
Avg merge
3d 1h
Merged PRs (30d)
3

Description

https://github.com/easystats/parameters/blob/85d8e855c545b38463dc13648a8bf53b65fde903/R/principal_components.R#L199-L200

That's minor but I just noticed that the data name and dataset as saved under these names, which is a bit counterintuitive (I would have expected data to be the dataset and for the name something like data_name or such). Do you have in mind if this is used in other places that in this context (to see whether it would be a problem to change it)?

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 at R/principal_components.R lines 199-200 and inspect how the data and data-name attributes are assigned. Search the repository for both attribute names to determine whether renaming would affect other uses; done means the names are intuitive and all references remain consistent.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
data
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 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.