[R] a simple question
Rolf Turner
r@turner @end|ng |rom @uck|@nd@@c@nz
Thu Jan 2 00:29:34 CET 2020
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
More information about the R-help
mailing list