在R語言中,可以使用以下方法來導出數據:
write.table(data, file = "data.csv", sep = ",", row.names = FALSE)
write.csv(data, file = "data.csv", row.names = FALSE)
library(openxlsx)
write.xlsx(data, file = "data.xlsx")
saveRDS(data, file = "data.rds")
save(data, file = "data.RData")