You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何解决R 3.6.2版本中‘package ‘ddply’ is not available’安装报错?

解决R中安装ddply包的报错问题

Hey there, let's fix this up for you! The error you're seeing happens because there's no standalone R package named ddply—the ddply() function you're looking for is actually part of the plyr package.

Here's how to get it working:

  • First, install the plyr package itself using this command:

    install.packages("plyr")
    

    If you run into network issues (like slow downloads), you can specify a domestic CRAN mirror to speed things up (take Tsinghua's mirror as an example):

    install.packages("plyr", repos = "https://mirrors.tuna.tsinghua.edu.cn/CRAN/")
    
  • Once the installation finishes, load the plyr package into your R session:

    library(plyr)
    

    Now you can use the ddply() function just like you intended!

A quick note: Your R version 3.6.2 is fully compatible with the plyr package, so version mismatch won't be an issue here.

内容的提问来源于stack exchange,提问作者Jeremy Rios

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.06 15:44:06