I have the following in server.R
library(shiny)
# Load the ggplot2 package which provides
# the 'mpg' dataset.
library(ggplot2)
# Define a server for the Shiny app
shinyServer(function(input, output) {
# Filter data based on selections
output$table <- renderDataTable({
data <- as.data.frame(98,99,34)
names(data) <- "Projection"
data
})
And the following in ui.R library(shiny)
# Define the overall UI
shinyUI(
fluidPage(
titlePanel("Basic DataTable"),
# Create a new row for the table.
fluidRow(
dataTableOutput(outputId="table")
)
)
)
Is it possible to add a column to the data dataframe that is a numericInput where the user can modify the projections if they don't agree with it. Something like this:
Projection Your Projection
98 |_____________| <- Numeric Input goes in there, then the projection updates