data("galaxy")
colnames(galaxy)
## Write dataset into tab delimited ASCII file.
write.table(galaxy, file = "galaxy.txt", sep = "t",
eol = "", row.names = FALSE, col.names = FALSE)
## Write dataset into rda file.
save(galaxy, file = "galaxy.rda")
Run the code above in your browser using DataLab