来自 data.tree 包的 as.Node() 问题对于 circlePackeR

问题描述

我有一个名称的数据框,如下所示:

head(data)
  root
1 root
2 root
3 root
4 root
5 root
6 root
                                                                                                            group
1                                            II - In-house lobbyists and Trade&business&professional associations
2 VI - Organisations representing local,regional and municipal authorities,other public or mixed entities,etc.
3                                            II - In-house lobbyists and Trade&business&professional associations
4                                                            IV - Think tanks,research and academic institutions
5                                            II - In-house lobbyists and Trade&business&professional associations
6                                                                            III - Non-governmental organisations
                                                            subgroup
1                                    Trade and business associations
2                              Other sub-national public authorities
3                                    Trade and business associations
4                              Think tanks and research institutions
5                                                 Companies & groups
6 Non-governmental organisations,platforms and networks and similar
                                                                  subsubgroup
1                                        International Lead Association (ILA)
2                                               UK pesticides Campaign (UKPC)
3                                                        Airborne Wind Europe
4                                      Centre on Regulation in Europe (CERRE)
5 European Association of Paritarian Institutions of Social Protection (AEIP)
6                               Global Libraries - Bulgaria Foundation (GLBF)
  value
1     3
2     1
3     3
4    14
5     4
6     1
                                                                                                                                                                                 pathString
1                                           world/II - In-house lobbyists and Trade&business&professional associations/Trade and business associations/International Lead Association (ILA)
2 world/VI - Organisations representing local,etc./Other sub-national public authorities/UK pesticides Campaign (UKPC)
3                                                           world/II - In-house lobbyists and Trade&business&professional associations/Trade and business associations/Airborne Wind Europe
4                                                   world/IV - Think tanks,research and academic institutions/Think tanks and research institutions/Centre on Regulation in Europe (CERRE)
5                 world/II - In-house lobbyists and Trade&business&professional associations/Companies & groups/European Association of Paritarian Institutions of Social Protection (AEIP)
6                               world/III - Non-governmental organisations/Non-governmental organisations,platforms and networks and similar/Global Libraries - Bulgaria Foundation (GLBF)

你可以在我的 GitHub (.Rda) 上找到数据框 https://github.com/JMcrocs/data/raw/main/data.Rda

或者如果您更喜欢 CSV,这里是 https://paste.chapril.org/?4cee402090e17b8b#C3QQPTJEZYhkmyPFwVNnqMRxGYbZa3mG5SEHH4U1t65j

既然您可以理解数据帧,我想在其上使用 .asNode()。可悲的是它不起作用,并给了我很多看起来像这样的警告:

1: In climb(mynode,path) :
  unable to translate 'SEV - Hellenic Federation of Enterprises (S<U+0395><U+0392> (SEV))' to native encoding
2: In self[[child$name]] <- child :
  unable to translate 'SEV - Hellenic Federation of Enterprises (S<U+0395><U+0392> (SEV))' to native encoding
3: In climb(mynode,path) :
  unable to translate '<U+0399><U+0394><U+03A1><U+03A5><U+039C><U+0391> <U+03A4><U+0395><U+03A7><U+039D><U+039F><U+039B><U+039F>G<U+0399><U+0391>S <U+039A><U+0391><U+0399> <U+0395><U+03A1><U+0395><U+03A5><U+039D><U+0391>S (<U+0399><U+03A4><U+0395> - FORTH)' to native encoding

我希望能够将其转换为 data.tree 以便我可以使用 circlePackeR 包,但遗憾的是我不知道如何修复此错误。 有人可以帮助我吗?

亲切的问候,

JM 鳄鱼

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...