Questions tagged [numeric-input]

For all questions related to getting numeric data entry from users.

One of the common processes in many programs is the ability to request and retrieve numeric data from users. This tag should be used for questions related to that subject.

45 questions
0
votes
1 answer

I cannot introduce new NumericInputs after clicking a "Reset" Button in Shiny

I have written an app in Shiny where you can see a histogram if you click "See the plot". On the other hand, you have 2 NumericInputs where you can change the min and max values of the x-axis. In fact, if you change those values and click again…
emr2
  • 1,436
  • 7
  • 23
0
votes
1 answer

Increment in Shiny numericInput is 2 despite step = 1 in macOS Catalina

Assume you have a numericInput in your Shiny application. library(shiny) ui <- fluidPage(numericInput( "input", "n", value = 2, min = 2, max = 10, step = 1 )) shinyApp(ui, function(input, output) { observe({ …
Chriss Paul
  • 1,101
  • 6
  • 19
0
votes
2 answers

How to change location of numeric input boxes in R Shiny

Right now, the input boxes boxes display one below another. I would like to be able to display them in a matrix such that there are input$numoc rows and input$inp1 columns. UI numericInput("cols", "Enter number of…
X L
  • 27
  • 5
0
votes
1 answer

When I try to read a double from keyboard it only accepts when it's separerat with a comma

Scanner scan = new Scanner(System.in); double cost = scan.nextDouble(); System.out.println(cost); So i try writing 7.6 and it throws and exception in main. But when i write 7,6 it's OK and it prints 7.6 I'm using eclipse as my IDE
MaWiWa
  • 1
  • 1
0
votes
1 answer

How to update numericInput default value based on DT row selected

I'd like to update the numericInput value based on the different row users select from a DT table. Below is my simple example. So, if users select the 1st row, the value should be 50. If users select the 2nd row, the value should be 100. Is there a…
Ketty
  • 811
  • 10
  • 21
0
votes
0 answers

How to solve bug with numericInput in shiny: Input "jumps" with multiple input fields

For a project I am using multiple numericInput fields in shiny to enter certain amounts. The app user should be able to add new amounts if needed and type in any kind of numeric value, either via the arrows or manually. However, when adding new…
Soph2010
  • 563
  • 3
  • 13
0
votes
3 answers

How to disable edit option for displayed values in shiny?

We are allowing the users to update anyone of the 3 inputs. Shiny calculates ratio among them and display in %. However, this displayed value is editable in shiny. Since the displayed value is necessary for further calculation in the code, this…
Abhishek
  • 407
  • 3
  • 18
0
votes
1 answer

Aspnet MVC: Problem with default value of textboxfor

I'm newbie of aspnet mvc and I can't to resolve this issue: I have a Create view within a form with 2 submit button, one of these is the standard save button-> store data after validation and redirect to the index page. The other one save data and…
0
votes
1 answer

Using checkboxGroupInput as minimum for numeric Input, Shiny R

In my Shiny app I have a tabPanel Second page in which the user inputs some values e.g value1, value2, value3. Then I have another tabPanel First page, it consists of checkboxGroupInput in which the user chooses which values should be used for…
0
votes
0 answers

R shiny numeric input step validation

Consider the following code that sets the background of the numeric input widget to red upon invalid input: library(shiny) ui <- shinyUI( fluidPage( column(12, tags$style(HTML("input:invalid {background-color:…
qanda
  • 225
  • 3
  • 12
0
votes
1 answer

Replacing keypad period with comma in an input (type=number) with an angular directive

Problem: I've been recently requested the feature of having the keypad period be replaced with a comma when inserting a number in a field in my spa application built with angular. I decided to go with the directive approach to be able to easily…
0
votes
0 answers

Shiny: Error when dynamically generating numeric inputs using lists

I am trying to dynamically generate user inputs based on multiple predefined lists, my goal is to ease code maintainability by allowing it to conform to predefined data structures. Below is the code and the explanation for a simplified version of…
0ld M4j0r
  • 23
  • 4
0
votes
0 answers

R Shiny multiple Inputs in a row

It sounds easy, but I'm not able to manage my styling problem. As part of my app I want the user to input 3 numeric inputs with numericInput(inputid = "good", label ="3*", value =15, min = 0,width = '20px'), numericInput("ok", "2*",8, min = 0,width…
wolf_wue
  • 296
  • 1
  • 15
0
votes
1 answer

R shiny: test numericInput by using logical operator

In the shiny app a number can be entered (numericInput). A method should make sure that if the number equals to 1 it stays 1, but in all other cases (x!=1) the variable has to be set to 0. in server.r: ... checkNumber=reactive({ …
Arut
  • 39
  • 5
-1
votes
1 answer

importing data into r from txt file with missing values

I am having trouble importing data correctly into r from a txt file with missing values. When I import, the column of numeric values with the missing value (have tried it both as "." and "Na") is read as a factor variable. The import code I use is:…
1 2
3