Re: [R] help with if statement with two conditions

2019-12-23 Thread Steinmann, Kimberly@CDPR
19 3:33 PM To: Steinmann, Kimberly@CDPR ; r-help mailing list Subject: Re: [R] help with if statement with two conditions EXTERNAL: Hi Kimberley, Since you are using a loop and therefore testing one value of v_trends_lbs at a time, the "&" in the "if" statement should be "&a

[R] help with if statement with two conditions

2019-12-23 Thread Steinmann, Kimberly@CDPR
Hi - i am not super familiar with R, but need to modify my predecessor's R code so that if a variable is >0 and < 0.5, it will be replaced with <1. I have looked at a bunch of forum threads on the subject, but cannot seem to get anything to work Any help at what i might be doing wrong much appre