首页 > 解决方案 > 将 tibble 导出到 ODS 时出现问题

问题描述

我有以下代码:

library(readODS) 
source <- tibble(LANGUAGE = toupper(sprachen),
                 SOURCE = c("Source: SFO  National accounts",
                            "Quelle: BFS Volkswirtschaftliche Gesamtrechnung",
                            "Source: OFS Comptes nationaux",
                            "Fonte: UST Conti nazionali"),

                INFORMATION = c("Information: 058 467 34 86, info.vgr-cn bfs.admin.ch",
                          "Auskunft: 058 467 34 86, info.vgr-cn bfs.admin.ch",
                          "Renseignements: 058 467 34 86, info.vgr-cn fs.admin.ch",
                          "Informazioni: 058 467 34 86, info.vgr-cn bfs.admin.ch"),
                COPYRIGHT = c("SFSO 2020", "BFS 2020", "OFS 2020", 
                              "UST 2020"))
)

write_ods(source, "test.ods", sheet = "INFORMATION")

当我查看工作表时,第一行和最后一行显示了一些奇怪的行为(见图):第二列的值被第三列的值覆盖。然后第四列有一个NA。

在此处输入图像描述

我删除了所有标签和其他东西,但它一直在发生。知道这里有什么问题吗?

干杯伦格

标签: r

解决方案


推荐阅读