suggestion to add a wrapper function to turn the BCEA object into the dampack object

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

メンテナーはふだん 1 日以内に返信

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

評価

難易度
3/5
見積もり時間
半日
初心者へのやさしさ
55/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
r
領域
analytics

調査の方向性

The issue proposes a bcea_to_dampack wrapper that reads the cost (c), effectiveness (e) and interventions fields of a BCEA object and passes them to make_psa_obj. Start by checking how make_psa_obj expects its inputs and what the BCEA object contains, then confirm the conversion with a small BCEA example. Done means the function returns a valid dampack PSA object and the reverse direction is either scoped or split into its own issue. The author's currency default is an open question to settle with maintainers.

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

説明

feature

Convert a bcea object into a dampack psa object

BCEA is has great functionalities, however, not all the same as dampack

With this function users can hop form one to the other quickly

We might also make the reverse function

dampack_to_bcea if of interest to others

bcea_to_dampack <- function(obj_bcea, currency = "£") {
df_c <- as.data.frame(obj_bcea$c)
df_e <- as.data.frame(obj_bcea$e)
colnames(df_c) <- obj_bcea$interventions
colnames(df_e) <- obj_bcea$interventions

make_psa_obj(cost = df_c,
effectiveness = df_e,
strategies = obj_bcea$interventions,
currency = currency)
}

主要言語
R
スター
43
フォーク
14
平均マージ
4時間 44分
マージ済み PR(30日)
15

環境構築

はじめの一歩

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

DARTH-git/dampack のほかの issue

DARTH-git/dampack の issue をすべて見る

似ている issue

R の issue をもっと見る

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

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