I am in need of writing my output to an excel file in R
. The t_content
has around 401104 rows and 200 columns .
write.xlsx(t_content, paste0("../output/",'Content.xlsx'),
col.names = T, append = TRUE)
This command takes a very long time to complete the task. Any other alternative way?
您可能想尝试writexl
包中的write_xlsx()
。
writexl::write_xlsx(t_content, paste0("../output/",'Content.xlsx'))
data.table::fwrite
命令非常快,可以向您显示进度条,但它会为您提供一个 .csv 文件,然后可以与 excel 一起使用。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.