Re: [R] function that converts data into a form that can be included in a question to mailing list

2016-08-24 Thread William Dunlap via R-help
dump("yourObject", file=stdout()) is, IMO, a bit nicer than plain dput(yourObject). It makes copying and pasting even easier by putting "yourObject <-" in front of dput()'s output so readers don't have to type that themselves. E.g., > myData <- data.frame(X=1:2, Y=c(exp(1), pi)) > dump("myData",

Re: [R] function that converts data into a form that can be included in a question to mailing list

2016-08-24 Thread John Sorkin
I am trying to run a repeated measures analysis of data in which each subject (identified by SS) has 3 observations at three different times (0, 3, and 6). There are two groups of subjects (identified by group). I want to know if the response differs in the two groups. I have tried to used lme.

Re: [R] function that converts data into a form that can be included in a question to mailing list

2016-08-24 Thread Jim Lemon
Hi John, I think it is "dput". Jim On Thu, Aug 25, 2016 at 8:00 AM, John Sorkin wrote: > > There is a function that can be used to convert data structures such as a > data frame into a different format that allows the data to be sent to the > mailing list. The

Re: [R] function that converts data into a form that can be included in a question to mailing list

2016-08-24 Thread David Winsemius
> On Aug 24, 2016, at 3:00 PM, John Sorkin wrote: > > > There is a function that can be used to convert data structures such as a > data frame into a different format that allows the data to be sent to the > mailing list. The structure that is created can be used

Re: [R] function that converts data into a form that can be included in a question to mailing list

2016-08-24 Thread Bert Gunter
?dput Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Wed, Aug 24, 2016 at 3:00 PM, John Sorkin wrote: > > There is

Re: [R] function that converts data into a form that can be included in a question to mailing list

2016-08-24 Thread John Sorkin
Jim, Yes, you are correct! Give yourself a pat on the back and a gold start THANK YOU, John John David Sorkin M.D., Ph.D. Professor of Medicine Chief, Biostatistics and Informatics University of Maryland School of Medicine Division of Gerontology and Geriatric Medicine Baltimore VA Medical

[R] function that converts data into a form that can be included in a question to mailing list

2016-08-24 Thread John Sorkin
There is a function that can be used to convert data structures such as a data frame into a different format that allows the data to be sent to the mailing list. The structure that is created can be used to easily reconstruct the data structure. Unfortunately, I don't remember the function