Dear R-helpers,

I want to append a Ctrl-M character to a string and then save it to a text
file.

mystring<-"This is a test."

# How do I add a Ctrl-M to it in the end ??

cat(mystring,file="testfile")

Many thanks,
Ashim

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to