> year(as.Date("2013-1-1"))
Error: could not find function "year"
同样 month day function 同样产生错误!
===================================
环境 R 2.15.2 (ubuntu 64 bit)
R version 2.15.2 (2012-10-26) -- "Trick or Treat"
Copyright (C) 2012 The R Foundation for Statistical Computing
ISBN 3-900051-07-0
Platform: x86_64-pc-linux-gnu (64-bit)
求解释!
求解决!
谢谢高手们!