# create data frame called mydata
n <- 12
X <- sample(c("Group1","Group2"), size=n, replace=TRUE)
Y <- rnorm(n=n, mean=50, sd=10)
mydata <- data.frame(X,Y)
# specify the name of the output csv file
Write("mybestdata")
# short name
wrt("mybestdata")
# specify the name of the output native R data file
Write("mybestdata", type="R")
Run the code above in your browser using DataLab