barplot failure in R 3.1.0. read.csv converting what should be numerics to factors

前端 未结 2 752
粉色の甜心
粉色の甜心 2020-12-21 22:11

I have a little problem with the bar plot function of R 3.1.0. (it works fine in older versions).

nd_p_a<- read.csv(\"nd_p_a.csv\")
barplot(nd_p_a$y, col=         


        
2条回答
  •  误落风尘
    2020-12-21 22:37

    Here is a work around. The new behavior is annoying

    read.csv("nd_p_a.csv", colClasses=c("numeric", "numeric"))
    

提交回复
热议问题