Created
April 16, 2012 16:00
-
-
Save sheymann/2399654 to your computer and use it in GitHub Desktop.
R tip: Export a data frame in a tabular file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ExportData <- function(data, filename) { | |
# Export data in a tabular file. | |
sink(paste(filename, '.txt', sep=""), append=FALSE, split=FALSE) | |
print(data) | |
sink() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment