Vote count:
0
I am trying to change my data frame (names icorr) based on conditions. I want to do this for all the items in the dataframe. I'm quite new to r, and tried the following:
if(icorr<0.01) {icorr <- "***"
} else if(icorr<0.05) {icorr <- "**"
} else if(icorr<0.1) {icorr <- "*"
} else {icorr <- NA}
Definitely doesn't work. Any tips would be great.
Thanks
asked 26 secs ago
Aucun commentaire:
Enregistrer un commentaire