[R] how to extract data from a function printout - example provided

2011-06-26 Thread Ana Kolar
Hi there, Does anyone know how to extract data from a function that prints out two or more summaries? In the function below (the whole code is provided) we get 5 different tables of data. I would like to split each of these tables in a separate file (while the function itself shouldn't be

Re: [R] how to extract data from a function printout - example provided

2011-06-26 Thread Sarah Goslee
As a start, run matchit() for a test dataset and look at: names(m.out) and names(summary(m.out)) You can save those named components in the usual ways. Sarah On Sun, Jun 26, 2011 at 10:06 AM, Ana Kolar annako...@yahoo.com wrote: Hi there, Does anyone know how to extract data from a function

Re: [R] how to extract data from a function printout - example provided

2011-06-26 Thread Sarah Goslee
: R r-help@r-project.org Sent: Sunday, 26 June 2011, 16:11 Subject: Re: [R] how to extract data from a function printout - example provided As a start, run matchit() for a test dataset and look at: names(m.out) and names(summary(m.out)) You can save those named components in the usual ways

Re: [R] how to extract data from a function printout - example provided

2011-06-26 Thread Ana Kolar
Kolar annako...@yahoo.com Cc: R r-help@r-project.org Sent: Sunday, 26 June 2011, 16:11 Subject: Re: [R] how to extract data from a function printout - example provided As a start, run matchit() for a test dataset and look at: names(m.out) and names(summary(m.out)) You can save those named