On 2/01/20 12:16 pm, Yuan Chun Ding wrote:
Hi R users, in a Shiny test code, choices = list(1, 2, 3), it generates three components in the choice list, my code works fine and generated tables and plots I want. now I want to modify to choices = list (1, 2, 3, ...., 5211). list (seq(1, 5211,1) does not work, it generates one component (1, 2, 3, ....5211) in the choice list, not 5211-component list. Can you help me?
I don't use/have no idea about Shiny, so this may be a case of the blind leading the partially sighted, but perhaps you want
choices = as.list(seq(1,5211,1)) cheers, Rolf Turner -- Honorary Research Fellow Department of Statistics University of Auckland Phone: +64-9-373-7599 ext. 88276 ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.