Change raneftable return type again - i.e. undo #634 a bit

Open
#678 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

Research direction

Start by reading issue #634 and the current raneftables implementation, then inspect its callers and tests. Confirm how the existing DictTable and NamedTuple return values are used. Done means the affected return type uses TypedTables.Table and the relevant tests and callers are updated.

Written by the indexing model from the issue text.

Description

breaking

In #634 we changed the output type of raneftables to be a NamedTuple of DictTables. That is proving to be awkward. I thought it would be common to want to access rows of these tables by the String or Symbol of the grouping factor level but that doesn't seem to be the case. Often we want to sort them by the value of the random effects themselves and I have found that the Dictionaries.Dictionary form of the table and the fact that a column extracted from the table is itself a Dictionary and not a Vector makes working with them cumbersome. And I wouldn't want to have to explain the various contortions in the code needed to do this.

I will create a PR to change the DictTable to a TypedTables.Table.

Dominant language
Julia
Stars
455
Forks
51
Avg merge
3d 15h
Merged PRs (30d)
4

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No 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.

More from JuliaStats/MixedModels.jl

All issues in JuliaStats/MixedModels.jl

Similar issues

More Julia issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.