【发布时间】:2022-01-02 05:02:54
【问题描述】:
我想在 Rshiny 中动态选择数据框。
这就是我所拥有的:
## First we are going to import some example dataframes
Biomarker <- read_excel("C:\\Datasets\\Example1.xlsx")
Baseline <- read_excel("C:\\Datasets\\Example2.xlsx")
Mutation <- read_excel("C:\\Datasets\\Example3.xlsx")
# We are going to create a list of this dataframes so we can select which one we want in the Rshiny app
ldf <- list(Biomarker = Biomarker, Baseline = Baseline, Mutation = Mutation)
ui <- fluidPage(
selectInput("dataset", label = "Dataset", ldf),
verbatimTextOutput("summary"),
tableOutput("table")
)
但这实际上允许您选择数据框内的行,而不是数据框本身。
有什么想法吗?
【问题讨论】: