mydata <- read.csv("C:/Users/rs1a17/Desktop/mydata.csv")
plotTimingPatterns(mydata,n=30,T.cal="2004-01-01",headers = c("Past", "Future"), title = "")
gmin(date)中的错误:min对因素没有意义。
如何解决这个问题?
我的数据是这样的:
cust date
2000015 1993-11-05
2000015 1993-11-25
2000015 1994-12-06
2000015 1997-10-01
我写
mydata$date<-as.character(mydata$date)
然后
plotTimingPatterns(mydata,n=30,T.cal="2004-01-01",headers = c("Past", "Future"), title = "")