在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")