Re: [R] getting a string output from str

From: Greg Snow <Greg.Snow_at_imail.org>
Date: Thu, 27 Dec 2007 12:12:33 -0700

If you want to capture the output of the str function in a vector of character strings, try the capture.output function.


From: r-help-bounces_at_r-project.org on behalf of eggsbrown Sent: Thu 12/27/2007 11:51 AM
To: r-help_at_r-project.org
Subject: [R] getting a string output from str

I would like to use the output from str() in a homemade function but str does not return a value!

eg:
list(x=str(1:20),y=str(1:15))
returns odd output...

Thanks - Kevin.

--
View this message in context: http://www.nabble.com/getting-a-string-output-from-str-tp14517059p14517059.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. [[alternative HTML version deleted]]
______________________________________________
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.
Received on Thu 27 Dec 2007 - 19:17:32 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 27 Dec 2007 - 20:30:22 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.