How to read the only valid observations in the rage sliderInput in Shiny in R
问题 I have randomly generated a reproducible example of range . And I wish that my input will store in the Global Environment ( selectednumbers ). So when I run the shinyApp , let's say I choose the slidebarInput between 1 and 100 , the verbatimTextOutput will shows (which I satisfied): [1] 1 2 3 6 8 11 15 17 20 21 22 27 But when I checked for the selectednumbers (Global Environment), it shows (which I don't want): [1] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 [21] 21 22 23 24 25 26 27