# R code for chapter 42 saving_and_exporting_your_work_and_data.r # Book details: # http://www.amazon.co.uk/Health-Science-Statistics-using-Commander/dp/190790431X ### # final all dataframe loaded type ls() # saving dataframe assuming it is called sample1_shifted: # using the select file dialogue box: save(sample1_shifted, file= file.choose()) # exporting a dataset assuming it is called mydataframe: # sep="\t" = tab then you should give it a dat extension # sep = "," = comma then you should give it a txt extension write.table(mydataframe, "c:/mydata.dat", sep="\t") # or write.table(mydataframe, file= file.choose(), sep="\t")