R:表格中的错误:if(by <1)stop(“'by'必须> 0”)时发生错误

时间:2019-06-20 10:13:52

标签: r plot

我是R语言的初学者,无法理解该简单代码中的问题:

install.packages("tabplot")
library("tabplot")
library("MASS")
Boston$chas <- factor(Boston$chas)
Boston$rad <- ordered(Boston$rad)
tableplot(Boston)

运行“ tableplot”函数后,出现以下错误消息:

Error in if (by < 1) stop("'by' must be > 0") : 
missing value where TRUE/FALSE needed
`In addition: Warning message:
In chunk.default(from = 1L, to = 506L, by = c(double = 23058430092136940),  :NAs introduced by coercion to integer range

出什么问题了?数据集中没有缺失值。有人可以解释一下吗?

非常感谢 达里亚(Daria)

0 个答案:

没有答案