if-statement
mardi 30 juin 2015
How to create a new column of data in R with if statements?
I want to create a new column D of data where:
if column A is less than 5, then column D = column A
if column A is = 5, then column D = 0
if column A is = 6, then column D = column B
What would be the syntax?
Aucun commentaire:
Enregistrer un commentaire
Article plus récent
Article plus ancien
Accueil
Inscription à :
Publier les commentaires (Atom)
Aucun commentaire:
Enregistrer un commentaire