#an example to save a dataset i the textbook as a text file in R: #see an intro to the package, including all the available datasets at # http://cran.r-project.org/web/packages/KMsurv/KMsurv.pdf #install the R package if not yet: install.packages("KMsurv") library("KMsurv") #activate the data to be save; # here it the data named alloauto: data(alloauto) #see an intro to the data: ?alloauto #save it in a text file named "alloauto.dat"; # you can use whatever file name you like: sink("alloauto.dat") alloauto sink()