[R] how to assign "writeLines" function
R. Michael Weylandt
michael.weylandt at gmail.com
Thu Mar 15 12:46:45 CET 2012
I'm not sure what writeLines is for here(); just a <- strwrap(k, width
= 80, indent = 7, exdent = 6) if I understand you correctly.
cat(a, "\n"")
Michael
On Thu, Mar 15, 2012 at 5:13 AM, mrzung <mrzung46 at gmail.com> wrote:
> hi,
> what I want to do is assigning following code to any object.
>
> k<-paste("thank")
>
> writeLines(strwrap(k, width = 80,indent = 7,exdent = 6))
>
> To assign the "writeLines" code,
>
> I try this
>
> a<-writeLines(strwrap(k, width = 80,indent = 7,exdent = 6))
>
> or
>
> assign(a,writeLines(strwrap(k, width = 80,indent = 7,exdent = 6)))
>
> but it doesn't work.
>
> is there any way to solve the problem?
>
>
>
>
> --
> View this message in context: http://r.789695.n4.nabble.com/how-to-assign-writeLines-function-tp4474314p4474314.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at 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.
More information about the R-help
mailing list