Shiny - read file with BCG_ATTR

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

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
r
領域
data

調査の方向性

Start with Server.R and trace the file import flow for the Shiny feature that reads BCG_ATTR. Check how the input column name is detected and passed to the import; the issue’s example uses a header read followed by colClasses. Done when files with BCG_ATTR values that could be parsed as complex numbers import that column as character across the supported permutations.

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

説明

Describe the bug
BCG_ATTR can cause issue with complex number.

To Reproduce
Rework import feature as not all permutations.
Server.R

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
image

Additional context
From BCGcalc Server.R

Read the file first:

    df_header <- read.delim(fn_inFile
                            , header = TRUE
                            , sep = ","
                            , stringsAsFactors = FALSE
                            , na.strings = c("", "NA")
                            , nrows = 0)
    col_num_bcgattr <- grep("BCG_ATTR", toupper(names(df_header)))
    classes_df <- sapply(df_header, class)
    col_name_bcgattr <- names(df_header)[col_num_bcgattr]

Then use column name present in file during import.

df_input <- read.table(fn_inFile
                             , header = TRUE
                             , sep = ","
                             , stringsAsFactors = FALSE
                             , na.strings = c("", "NA")
                             , colClasses = c(col_name_bcgattr = "character"))
主要言語
R
スター
15
フォーク
6
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

leppott/BioMonTools のほかの issue

leppott/BioMonTools の issue をすべて見る

似ている issue

R の issue をもっと見る

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

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