Try using cat instead.  Then "\n" is the new line character.

E.g.
 cat("1st line\n2nd line\n")

Jeremy




On 30 September 2010 13:30, David LeBauer <dleba...@gmail.com> wrote:
> Can I add a line break to the paste() function to return the following:
>
> 'this is the first line'
> 'this is the second line'
>
> instead of
> 'this is the first line this is the second line'
>
> ?
>
> ______________________________________________
> 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.
>



-- 
Jeremy Miles
Psychology Research Methods Wiki: www.researchmethodsinpsychology.com

______________________________________________
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