`data_extract_spec` enhancements

未关闭
#2 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
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. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

pharmaverse/teal.transform 的其他 Issue

查看 pharmaverse/teal.transform 的全部 Issue

相似的 Issue

更多 R Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。