[R] how to assign "writeLines" function
mrzung
mrzung46 at gmail.com
Thu Mar 15 10:13:08 CET 2012
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.
More information about the R-help
mailing list