我有一个R Markdown Shiny文件,我想使用for,以便它根据另一个用户输入重复显示相同的输入框,如下所示:
fluidRow(
numericInput("NFills",
label = h3("Number of Different Fills"),
value = 1)
)
for(i in 1:input$NFills)
{
fluidRow(
column(3,
numericInput(paste("Qty",1),
label = h3("Quantity"),
value = 0)),
column(3,
numericInput(paste("Price",1),
label = h3("Price"),
value = 1)),
column(3,
numericInput(paste("Numerator",1),
label = h3("Numerator"),
value = 0))
)
}
谢谢!