[R] getting a string output from str

2007-12-27 Thread eggsbrown
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

Re: [R] getting a string output from str

2007-12-27 Thread Greg Snow
If you want to capture the output of the str function in a vector of character strings, try the capture.output function. From: [EMAIL PROTECTED] on behalf of eggsbrown Sent: Thu 12/27/2007 11:51 AM To: r-help@r-project.org Subject: [R] getting a string output