安装Zoo for R似乎是成功的,但是找不到`Error对象'zoo'

时间:2014-07-20 02:41:09

标签: r zoo

我似乎无法安装zoo库。我已经安装了ggplot2,xts和许多其他库。 Zoo是第一个抛出错误的人。

以下情况如何发生?

> install.packages("zoo")
trying URL 'http://cran.mirrors.hoobly.com/bin/macosx/mavericks/contrib/3.1/zoo_1.7-11.tgz'
Content type 'application/x-gzip' length 868268 bytes (847 Kb)
opened URL
==================================================
downloaded 847 Kb


The downloaded binary packages are in
    /var/folders/7q/9z1s0pvd50qf30y7swrlpt_r0000gn/T//RtmpGPYn7C/downloaded_packages
> zoo
Error: object 'zoo' not found
> 

1 个答案:

答案 0 :(得分:0)

仍然是R的菜鸟。安装完成后,您必须记住将库导入您的环境。

# Install a library.
install.packages("zoo")

# Import it it into your script. 
library(zoo)