lundi 29 décembre 2014

Trouble with If/Then Statements

I am trying to perform a simple if then statement and I am getting confused on the coding. Specifically I want to say that if something is a, then I want it to be b. The example is:


forms$form.type <- if (forms$form.type == 28) {forms$form.type = "Form 28"}


I'm not sure if this is the right code, but I just want to do a simple if/then statement.


Aucun commentaire:

Enregistrer un commentaire