mardi 22 octobre 2019

Is there a way to subscribe two commands in R?

For example, there are two formulas for calculating a.

a <- d + 1

a <- e + 3

In a loop, At first, I use the first formula. When a condition satisfied, I want to use the second formula and don't use the first formula in r.

Is there a way to inactive the first formula and use second formula in a loop?

Aucun commentaire:

Enregistrer un commentaire