I was wondering how to set two or more results from a true ifelse statement.
For example, I would like to set y = 2
and t=3
if x=2
. I was thinking the code would look something like this:
x=2
ifelse(x==2,y=2 & t=3, y=0 & t=0)
however this does not work.
Aucun commentaire:
Enregistrer un commentaire