`data_extract_spec` enhancements

オープン
#2 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
r
領域
data

調査の方向性

まず、現在の data_extract_spec エントリーポイントを特定し、その引数がどのように表現され、テストされているかを確認します。その動作を、提案されている filter-only、select-only、col_types、all() の形式と比較し、合意された API とその完了基準のサポートを確立するテストを定義します。

索引モデルが issue の本文から書いたものです。

説明

core enhancement

From https://github.com/insightsengineering/teal/issues/436#issuecomment-1015417950

[The specific form of the arguments such as all() and list() are just examples]

  • Would be great to specify say data_extract_spec(<>, filter_spec = list()) to just get the select and vice versa

  • Would be great to specify say data_extract_spec(<>, col_types = c("numeric", "date")) where the select/filter_spec is populated with only numeric/date columns

  • Would be great to say specify data_extract_spec(all(), ...) to get UI where you can select from all datanames (at the moment data_extract_spec needs a single dataset but the api could be changed to handle this more smoothly)

After all of these in tmg the default arguments for the modules could be chosen sensibly so defining apps could be so simpler:

E.g. tm_outliers could have default args:

tm_outliers<- function( ...
  outlier_var = data_extract_spec(all(), filter_spec = list(), col_types = c("numeric"),
  categorical_var = data_extract_spec(all(), select_spec = list(), col_types = c("factor"),
 ...
) { ... }

Then app developers could just use tm_outliers() 🥳

主要言語
R
スター
2
フォーク
5
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

pharmaverse/teal.transform のほかの issue

pharmaverse/teal.transform の issue をすべて見る

似ている issue

R の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。