Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
你能帮我理解这个错误吗scan()?
scan()
我相信错误在what=list(.) 如果是这样,有人可以帮助澄清吗?
what=list(.)
看起来它期望列表仅包含实数,但列表包含实数 ( 0) 和字符串 ( "")。
0
""
如果您想为数字提供一个空值,而不是""尝试使用NA. 所以这条线是
NA
what=list(NA, NA, 0, 0, 0)