This file contains hidden or 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
# Let's say you have an R object that you'd like to share with someone else | |
# but, for whatever reason, it is necessary to share it in text form. | |
# Generate a random data.frame | |
set.seed(1337) | |
NN <- 10 | |
theData <- data.frame(Alpha = rnorm(NN), | |
Beta = rnorm(NN)) | |
theData$Gamma <- theData$Alpha * 2 + theData$Beta / 2 + rnorm(NN) | |
print(theData) |