I\'m using R for a pharmacodynamic analysis and I\'m fairly new to programming.
The thing is, I\'m carrying out linear regression analysis and in the future I will
Should you want to re-import the data into R but still want to have it in a text file, there is also dput, e.g.,
dput(summary(lm(cars$speed~cars$dist)),file="summary_lm.txt",control="all")
This allows to re-import the summary object via
res=dget("summary_lm.txt")
Let's check the class of res
class(res)
[1] "summary.lm"