ユーザーから名前や性別などの入力値を受け取る光沢のあるWebアプリケーションを構築しています。これらの値をデータフレームに変換したいのですが、"エラー:クラスを強制できません" c( "shiny.render.function"、 "function") "to data.frame"エラー。エラー:クラス "c(" shiny.render.function "、" function ")をdata.frameに強制変換できません
nText<- eventReactive(input$click_counter, valueExpr = {
a<- renderText(input$name)
b<- renderText(input$gender)
c<- renderText(input$college)
d<- renderText(input$team)
e<- renderText(input$score)
return(data.frame(player=a,college=b,gender=c,team=d,score=e))
})
output$nText<- renderDataTable({
nText()
})
そして、これは私がui.Rファイル内に持っているものである:ここで
は、私がserver.Rファイル内に持っているものである
actionButton("click_counter","Submit"),
dataTableOutput("nText")
a、b、c、d、またはeの構造はまさにあなたの考えですか?言語要素を持つデータフレーム列を持つことができないことに気づいていますか?リストを使用しているはずですか? –
'renderText()'で全ての 'inputs'をラップしないでください – Yang