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
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.
>
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
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
4 matches
Mail list logo