Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用以下命令将 R 中的数据框写入 excel 文件write.xlsx(dataframe, pathName, row.names = FALSE, append = FALSE):
write.xlsx(dataframe, pathName, row.names = FALSE, append = FALSE)
现在我想以粗体打印第一行(数据框中的标题)。有谁知道如何使用包中的write.xlsx功能来做到这一点xlsx?
write.xlsx
xlsx
您可以使用包中write_xlsx的 de 函数writexl,设置format_headers = TRUE
write_xlsx
writexl
format_headers = TRUE
write_xlsx(x, path = "your path", col_names = TRUE, format_headers = TRUE)