ce column values in R conditional on values from
> different column
>
> Hello,
>
> No need for a loop. "else if" doesn't exist in R. And Health2$CohenM and
> Health2_CohenF have to be created first, in case of a loop
>
> If Health2$q_5a only have 1 and 2
Thank you so much!!! This is exactly what I needed!! Have a wonderful rest of
the weekend!!
--
View this message in context:
http://r.789695.n4.nabble.com/Replace-column-values-in-R-conditional-on-values-from-different-column-tp4646087p4646091.html
Sent from the R help mailing list archive at N
ject.org
Cc:
Sent: Saturday, October 13, 2012 2:59 PM
Subject: [R] Replace column values in R conditional on values from different
column
Dear List,
I am working on a stats project and have been stumped by the issue of
replacing values in a column conditional on values from a different column.
I
Hello,
No need for a loop. "else if" doesn't exist in R. And Health2$CohenM and
Health2_CohenF have to be created first, in case of a loop
If Health2$q_5a only have 1 and 2 as possible values, just use "which"
and "-". And I would suggest to not add new variables in your data
frame, because
Dear List,
I am working on a stats project and have been stumped by the issue of
replacing values in a column conditional on values from a different column.
I searched the forum and google in general, and was able to put some code
together, but it's not working the way it's supposed to... I apprec
5 matches
Mail list logo