R로 Shiny 웹 애플리케이션 만들기
Kaelen Medeiros
Data Scientist
Shiny는 다양한 입력 요소를 제공합니다.




selectInput("inputId",
"label",
choices = c("A", "B", "C"))
sliderInput("inputId",
"label",
value = 1925,
min = 1900,
max = 2000)
?dateRangeInput
help(checkboxInput)
ui <- fluidPage( textInput("name", "이름 입력:"), selectInput("animal", "개 또는 고양이?", choices = c("dogs", "cats")), textOutput("greeting"), textOutput("answer") )server <- function(input, output, session) { output$greeting <- renderText({ paste("개와 고양이 중 무엇을 더 선호하시나요,", input$name, "?") }) output$answer <- renderText({ paste("저는", input$animal, "를 선호합니다!") }) }
R로 Shiny 웹 애플리케이션 만들기