Skip to content

Instantly share code, notes, and snippets.

@sheymann
Created April 16, 2012 16:00
Show Gist options
  • Save sheymann/2399654 to your computer and use it in GitHub Desktop.
Save sheymann/2399654 to your computer and use it in GitHub Desktop.
R tip: Export a data frame in a tabular file
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