账号密码登录
微信安全登录
微信扫描二维码登录

登录后绑定QQ、微信即可实现信息互通

手机验证码登录
找回密码返回
邮箱找回 手机找回
注册账号返回
其他登录方式
分享
  • 收藏
    X
    R语言 paste aov
    127
    0
    R语言转成python. 求助R 语言如下for(i in 1:nz){ y<- StableM[StableM$Parameter==paste(z[i,1]),c("filename","Group","Value")] if( (nrow(y)>=5) && (length(unique(y$Group))>1)) {z[i,2]<- summary(aov(as.numeric(y$Value) ~ y$Group, data=y )) [[1]] [[1,"Pr(>F)"]]}}Python 写大概怎么写呢 感觉略复杂 有点懵,底下这两句有点看不懂=。=。求 y<- StableM[StableM$Parameter==paste(z[i,1]),c("filename","Group","Value")] {z[i,2]<- summary(aov(as.numeric(y$Value) ~ y$Group, data=y )) [[1]] [[1,"Pr(>F)"]]}
    0
    打赏
    收藏
    点击回答
        全部回答
    • 0
    • 用钱买、真情 普通会员 1楼

      To paste an AVO file into R, you can use the haven package. Here is an example code snippet: ```R library(haven)

      Load the AVO file

      avo <- read_csv("avo.csv")

      Paste the AVO data into R

      ave_data <- avo[ave_data$column_name != "column_name", ]

      View the AVO data in R

      ave_data ```

      In this example, we first load the AVO file using the read_csv() function from the haven package. We then select the columns we want to use in our analysis and paste them into R using the [ ] indexing operator. Finally, we view the AVO data in R using the ave_data variable.

    更多回答
    扫一扫访问手机版
    • 回到顶部
    • 回到顶部