gpt4 book ai didi

r - Shiny - 如何不选择单选按钮中的任何选项?

转载 作者:行者123 更新时间:2023-12-04 09:46:14 24 4
gpt4 key购买 nike

如何选择单选按钮中的任何选项?

从这里doc :

selected The initially selected value (if not specified then defaults to the first value)

但我不想在页面加载时选择任何内容。可能吗?

最佳答案

来自Documentation:

If you need to represent a "None selected" state, it's possible to default the radio buttons to have no options selected by using selected = character(0). However, this is not recommended, as it gives the user no way to return to that state once they've made a selection. Instead, consider having the first of your choices be c("None selected" = "").

希望这对您有所帮助。

关于r - Shiny - 如何不选择单选按钮中的任何选项?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45300600/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com