说,我有一个向量y,我想检查y中的每个元素是否为整数,如果不是,则停止并显示错误消息.我试过is.integer(y),但它不起作用.
integer r vector
integer ×1
r ×1
vector ×1