【问题标题】:Error in bind_rows_(x, .id) : Argument 1 must have names in sunbust() rbind_rows(xvid) 中的错误:参数 1 必须在 sunburst() r 中有名称
【发布时间】:2021-01-22 22:18:31
【问题描述】:

我试图复制查询以在 R 中创建旭日图,但遇到以下错误消息:Error in bind_rows_(x, .id) : Argument 1 must have names

这是我用来测试sunburst()函数的数据:sequences <- read.csv( system.file("examples/visit-sequences.csv",package="sunburstR") ,header=F ,stringsAsFactors = FALSE)

我在 Rstudio 3.6.1

【问题讨论】:

    标签: r rows bind sunburst-diagram


    【解决方案1】:

    我建议您更新您的 RStudio 版本。 我已经用 RStudio 4.0.3 版试过了,效果很好。

    library(sunburstR) 
    sequences <- read.csv( system.file("examples/visit-sequences.csv",
                                       package="sunburstR") ,
                           header=F ,
                           stringsAsFactors = FALSE)
    
    sunburst(sequences)
    

    Default Sunburst

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-10-15
      • 1970-01-01
      • 2021-02-09
      • 2020-01-10
      • 2019-03-01
      • 2021-09-14
      • 2018-07-08
      • 2019-09-28
      相关资源
      最近更新 更多