Re: [R] Coding help for data frame.

2019-03-21 Thread Sarah Goslee
I'm glad you figured it out. You do still need to reply to the R-help list, not me, but because you did reply just to me I discovered that your orignal question had an image in it of your desired result, which was stripped by the pliant-text R-help server. So your original email ended with: "Is

Re: [R] Coding help for data frame.

2019-03-21 Thread Sarah Goslee
esulting data frame to look like? I'm assuming that your sample data is the starting point. Or do you simply need to rbind the two columns together? Sarah > Anand > > Begin forwarded message: > > From: Sarah Goslee > Subject: Re: [R] Coding help for data frame. >

Re: [R] Coding help for data frame.

2019-03-21 Thread Sarah Goslee
I'm sorry, I don't understand what you're trying to do with your hypothetical data. Can you expand on what your question is? Sarah On Thu, Mar 21, 2019 at 9:54 AM Anaanthan Pillai wrote: > > Good day, > > #I’ve created hypothetical data for drug X and drug Y whereby both drug have > the abilit

[R] Coding help for data frame.

2019-03-21 Thread Anaanthan Pillai
Good day, #I’ve created hypothetical data for drug X and drug Y whereby both drug have the ability to have HbA1c reduction. set.seed(10) drugx= rnorm(50, mean = 0.1, sd=0.02) set.seed(11) drugy= rnorm(50, mean=0.15, sd=0.03) #And created a data frame, compare drugs (comdrug) of 50 patients for

Re: [R] R Coding Help

2019-03-07 Thread David L Carlson
Department of Anthropology Texas A&M University College Station, TX 77843-4352 -Original Message- From: R-help On Behalf Of John Kane Sent: Thursday, March 7, 2019 2:20 PM To: Aryana Nabavizadeh Cc: R. Help Mailing List Subject: Re: [R] R Coding Help Thanks for the screenshot but it is not re

Re: [R] R Coding Help

2019-03-07 Thread John Kane
Thanks for the screenshot but it is not really all that useful. We really need the actual code and some sample data. Have a look at http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example or http://adv-r.had.co.nz/Reproducibility.html for some suggesitions. Providin

Re: [R] Coding help

2012-02-29 Thread Petr Savicky
On Wed, Feb 29, 2012 at 11:58:04AM -0500, Ayyappa Chaturvedula wrote: > Dear Group, > > I have the following dataset: >ID REPI DV CONC SS > 11 156.84 116 0 > 1 2 146.56 116 0 >13 115.13 116 0 >14 207.81 116 0 > 15 129.53 116 0 > 16 151.48

[R] Coding help

2012-02-29 Thread Ayyappa Chaturvedula
Dear Group, I have the following dataset: ID REPI DV CONC SS 11 156.84 116 0 1 2 146.56 116 0 13 115.13 116 0 14 207.81 116 0 15 129.53 116 0 16 151.48 116 0 17 158.95 116 0 18 192.37 116 0 19 32.97 116 0 1 10